problem with moving objects
#6

This is not how GetObjectPos works. Just use a static variable. Under your
pawn Код:
if (PRESSED(KEY_ANALOG_LEFT ))
add:
pawn Код:
static bool:gateOpen;
then:
pawn Код:
if(gateOpen == false) // is closed, open it
{

}
else // is open, close it
{

}

gateStatus = !gateStatus; // invert status; 1 -> 0, 0 -> 1
Reply


Messages In This Thread
problem with moving objects - by Dainyzxz - 16.03.2013, 08:28
Re: problem with moving objects - by DaRk_RaiN - 16.03.2013, 08:34
Re: problem with moving objects - by papedo - 16.03.2013, 08:36
Re: problem with moving objects - by Dainyzxz - 16.03.2013, 09:03
Re : problem with moving objects - by morocco - 16.03.2013, 11:18
Re: problem with moving objects - by Vince - 16.03.2013, 12:06

Forum Jump:


Users browsing this thread: 5 Guest(s)