SA-MP Forums Archive
How to make moving gates - 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: How to make moving gates (/showthread.php?tid=376153)



How to make moving gates - Vasu99 - 09.09.2012

Can someone explain how to make moving gates? It'd be really nice. The weird thing is that I use to know this but I forgot since I quit samp for around 7 months


Re: How to make moving gates - Roko_foko - 09.09.2012

Moveobject, you have to save the object id and use it in MoveObject function.
example:
pawn Код:
new gate;

public OnGameModeInit()
{
    gate=CreateObject(...);//saving id in (global)variable.
    return 1;
}



Re: How to make moving gates - clarencecuzz - 09.09.2012

People use the MoveObject function for this. There are different types of gates, automatic and command-triggered. https://sampwiki.blast.hk/wiki/MoveObject

NOTE: The function has changed since 0.3d and now includes Float:RotX, RotY and RotZ parameters.