How to make moving gates
#1

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

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;
}
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)