Help Just 2 Simple auto gates
#6

Ok, so first we have to create a variable at the top of the script ( global variable) so the the script can know that you're trying to make a object;
so:
pawn Код:
new Firstgate; //first gate
new Secondgate; //second gate
next , under OnGameModeInit ( when the console is starting ( gamemode))
pawn Код:
Firstgate = CreateDynamicObject(980, 2497.20508, 2779.04443, 12.34830, 0.00000, 0.00000, 90.00000); //assign our gate to the variable, so the compiler will say something like: ok, i'm gonna read this as a object ( gate)
Secondgate = CreateDynamicObject(980, 2497.36572, 2767.41577, 12.58362, 0.00000, 0.00000, 90.00000); //the same as above
then whenever you want to move it
pawn Код:
MoveDynamicObject(Firstgate, 2497.20508, 2779.04443, 17.56272, 5.0, 0.00000, 0.00000, 90.00000); //firstgate, moving it to the open position
MoveDynamicObject(Secondgate, 2497.36572, 2767.41577, 12.58362, 5.0, 0.00000, 0.00000, 90.00000); //the same but for secondgate
Reply


Messages In This Thread
Help Just 2 Simple auto gates - by donhu789 - 24.09.2013, 15:00
Re: Help Just 2 Simple auto gates - by donhu789 - 24.09.2013, 15:05
Re: Help Just 2 Simple auto gates - by Voxel - 24.09.2013, 15:05
Re: Help Just 2 Simple auto gates - by donhu789 - 24.09.2013, 15:07
Re: Help Just 2 Simple auto gates - by donhu789 - 24.09.2013, 15:09
Re: Help Just 2 Simple auto gates - by XStormiest - 24.09.2013, 15:23
Re: Help Just 2 Simple auto gates - by JimmyCh - 24.09.2013, 15:28
Re: Help Just 2 Simple auto gates - by donhu789 - 25.09.2013, 04:11
Re: Help Just 2 Simple auto gates - by donhu789 - 25.09.2013, 04:13
Re: Help Just 2 Simple auto gates - by JamesH - 25.09.2013, 05:02

Forum Jump:


Users browsing this thread: 1 Guest(s)