Freefall
#1

How to make object freefall from a height.
Reply
#2

you can use like, MoveObject for that..
Reply
#3

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
Reply
#4

So it will stop automatically when reaches to ground?
Reply
#5

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();
Reply
#6

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
Reply
#7

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

:/ vince somehow that joke isnt funny
Reply
#9

I got it thanks for help Its need Map Andreas Plugin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)