23.08.2010, 14:14
So i have this when player pick pickup objects move.I wanna know how make when server start objects auto-move on one side and than come back?
CreateObject(3115, 834.58679199219, -2077.3247070313, 11.756024360657, 0, 0, 0); CreateObject(3115, 834.35845947266, -2116.4672851563, 5.5060243606567, 0, 0, 0); |
// global
new
obj,
bool:at_start;
// OnGameModeInit
obj = CreateObject(model, start_x, start_y..............
MoveObject(obj, new_x, new_y,...........
// OnObjectMove // or moved ?
if (objectid == obj)
{
if (!at_start) MoveObject(obj, start_x, start_y, start_z, speed);
else MoveObject(obj, new_x, new_y, new_z, speed);
at_start = !at_start;
}