MoveObject(Urgent)
#1

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

https://sampwiki.blast.hk/wiki/MoveObject
Reply
#3

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?
Reply
#4

bump
Reply
#5

you do MoveObject(971, x,y,z);
Reply
#6

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

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

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''
Reply
#9

-.-.-.-.-.-.
Reply
#10

CANT SOMEONE FUCKING HELP?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)