07.11.2016, 22:28
Hey guys, I am working on a bombing system and I am having a little issue
Let's say I am launching a missile from my plane
I want the object to move from the plane to the ground (using ColAndreas to get the ground Z)
And once it reaches the ground, it will blow
Here is the code:
The object instantly moves to the ground, no delay, like the "time" parameter in moveobject doesn't matter
Anyone got a clue ?
Let's say I am launching a missile from my plane
I want the object to move from the plane to the ground (using ColAndreas to get the ground Z)
And once it reaches the ground, it will blow
Here is the code:
PHP код:
MoveDynamicObject(MissileObject[vehicleid], x, y, ground, floatround(GetVehicleDistanceFromPoint(vehicleid, x, y, ground)));
SetTimerEx("BlowMissile", floatround(GetVehicleDistanceFromPoint(vehicleid, x, y, ground)) * 1000, 0, "iifff", vehicleid, MissileObject[vehicleid], x, y, ground);
Anyone got a clue ?