SA-MP Forums Archive
Freefall - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Freefall (/showthread.php?tid=390992)



Freefall - MA_proking - 09.11.2012

How to make object freefall from a height.


Re: Freefall - XtremeR - 09.11.2012

you can use like, MoveObject for that..


Re: Freefall - iBot - 09.11.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
you can use like, MoveObject for that..
Yep but the exact speed needed
just would be like a dynamic and the speed would depend on the world gravity


Re: Freefall - MA_proking - 09.11.2012

So it will stop automatically when reaches to ground?


Re: Freefall - Glad2BeHere - 09.11.2012

nothing is different when using dynamic object put most player use streamers for more places,
the codes are the same differance is in name of the code not the code itself

HOPE I HELP U ++

https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/MoveObject
pawn Код:
new object;
//this is where u want the object to be
 object = createobject(//code here);
 //or
 object = createdynamicobject(//code here);

//next
//this is where u want to move the object to, get the position of it on the ground and put it there :/
moveobject();
//or
movedynamicobject();



Re: Freefall - Glad2BeHere - 09.11.2012

pawn Код:
//somewhere on top
new object;
forward ObjectMover();
forward ObjectMovers();

//under gamemode int
 object = CreateDynamicObject(13607, 266.15, 1867.20, 200.00,   0.00, 0.00, 0.00);
 SetTimer("ObjectMover", 60000,false);

//somewhere at the bottom
public ObjectMover()
{
MoveDynamicObject(object,316.66, 1699.49, 29.77,5.0);
SetTimer("ObjectMovers", 60000,false);
return 1;
}

public ObjectMovers()
{
MoveDynamicObject(object,266.15, 1867.20, 200.00,5.0);
SetTimer("ObjectMover", 60000,false);
return 1;
}
https://sampwiki.blast.hk/wiki/SetTimer

example script


Re: Freefall - ReneG - 09.11.2012

SA-MP isn't a physics engine, so this would be difficult to achieve, or would be impractical.


Re: Freefall - Glad2BeHere - 09.11.2012

:/ vince somehow that joke isnt funny


Re: Freefall - MA_proking - 09.11.2012

I got it thanks for help Its need Map Andreas Plugin