hi guyz is it possible to make an object take a pickup and then make it moveby a pickup to somelocation?
first i made an object on
function onScriptLoad()
{
ramp <- CreateObject( 560, 0, -293.014, -597.059, 12.8528, 255);
}
then on player cmd
if(cmd == "test" )
{
MessagePlayer("ramp moved!", player );
ramp.MoveTo( Vector(-329.487, -598.352, 12.8351), 1000)
ramp.RotateTo( Quaternion(0, 0, 0.5, -0.866025), 0 );
CreatePickup(368, Vector(-329.487, -598.352, 12.8351));
}
then on playerpickup
function onPickupPickedUp( player, pickup )
{
if ( ramp.pickup.Model == 368 )
{
ramp.Moveby(368, Vector(384.108, -805.87, 9.65089), 1000 )
}
}
but this doesnt work the obejct moves to a location when /test is applied but when it reaches to a pickup it doesnot moves to speciaifed location
https://pastebin.com/j4T115jc
*not tested*
Quote from: MatheuS on Aug 23, 2017, 11:04 AMhttps://pastebin.com/j4T115jc
*not tested*
actually i have done the same thing too. i want to know if the object takes the pickup and moves to other direction specified by that pickup