SA-MP Forums Archive
MoveObject(Urgent) - 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: MoveObject(Urgent) (/showthread.php?tid=330027)



MoveObject(Urgent) - Vasu99 - 31.03.2012

Hey, How can I make a object move? For example a gate. I want it to open whenever a army member comes near and then close again after like 4 secs


Re: MoveObject(Urgent) - MP2 - 31.03.2012

https://sampwiki.blast.hk/wiki/MoveObject


Re: MoveObject(Urgent) - Vasu99 - 31.03.2012

Should I just put this :
(971, Float:-1531.1678, Float:482.2309, Float:17.5966, Float:3, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)

If yes, Where to put it?


Re: MoveObject(Urgent) - Vasu99 - 31.03.2012

bump


Re: MoveObject(Urgent) - BigD - 31.03.2012

you do MoveObject(971, x,y,z);


Re: MoveObject(Urgent) - Vasu99 - 31.03.2012

It says
pawn Код:
C:\Users\Gandhi\Desktop\CnRBдst\gamemodes\SFCRRPG.pwn(16948) : error 021: symbol already defined: "MoveObject"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: MoveObject(Urgent) - Jack.7331 - 31.03.2012

pawn Код:
if (strcmp("/gateopen", cmdtext, true, 10) == 0)
    {
        MoveObject(gate, x, y, z, speed);

        return 1;
    }
    if (strcmp("/gateclose", cmdtext, true, 10) == 0)
    {
        MoveObject(gate, x, y, z, speed);

        return 1;
    }
Make sure to change the command as you wish, and that you have defined what the gate is with.
pawn Код:
new gate;
and then under it,
pawn Код:
gate = //Your createobject code



Re: MoveObject(Urgent) - Vasu99 - 01.04.2012

Quote:
Originally Posted by Jack.7331
Make sure to change the command as you wish, and that you have defined what the gate is with.
pawn Код:
new gate;
and then under it,
pawn Код:
gate = //Your createobject code
I dont understand, Where do I put all this? And what do you mean by '' And that you have defined what the gate is with''


Re: MoveObject(Urgent) - Vasu99 - 01.04.2012

-.-.-.-.-.-.


Re: MoveObject(Urgent) - Vasu99 - 01.04.2012

CANT SOMEONE FUCKING HELP?