09.11.2012, 02:20
How to make object freefall from a height.
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();
//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;
}