[FilterScript] Simple Gates | 1 Line, 1 Gate
#14

Quote:
Originally Posted by Hal
Посмотреть сообщение
so. can i have gates that rotate, instead of go up and down?
how would i do this?
They can also go left and right, however i dont think there is a native function or callback to change and objects rotation with a speed. Although you can use SetObjectRot to change the rotation of an object, but doing SetObjectRot will not look very nice, and will look like the gate "jumps" from one position to another.

If you still wish to rotate the gate just add this to the script (where the OnPlayerCommand callback is (in the strcmp section)) - (this is only if you want to rotate one gate on the individual gate command.

pawn Код:
if(Gates[i][command] == {YOUR GATE COMMAND})
{
     SetObjectRot({YOUR GATE ID}, {ITS NEW ROTATION});
}
The information you need to change i have put in:
Код:
{ and }
(squiggly brackets) XD - Hopefully this all goes ok, as i havent tested it.
Reply


Messages In This Thread
Simple Gates | 1 Line, 1 Gate - by Ash. - 01.08.2010, 10:15
Re: Simple Gates | 1 Line, 1 Gate - by Joe_ - 01.08.2010, 10:22
Re: Simple Gates | 1 Line, 1 Gate - by nuriel8833 - 01.08.2010, 10:30
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 01.08.2010, 10:51
Re: Simple Gates | 1 Line, 1 Gate - by Joe_ - 01.08.2010, 11:14
Re: Simple Gates | 1 Line, 1 Gate - by [MWR]Blood - 01.08.2010, 11:24
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 01.08.2010, 13:29
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 01.08.2010, 13:31
Re: Simple Gates | 1 Line, 1 Gate - by markokk888 - 01.08.2010, 21:09
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 02.08.2010, 08:16
Respuesta: Simple Gates | 1 Line, 1 Gate - by adri93 - 02.08.2010, 15:05
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 02.08.2010, 16:33
Re: Simple Gates | 1 Line, 1 Gate - by Hal - 02.08.2010, 19:24
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 02.08.2010, 20:01
Re: Simple Gates | 1 Line, 1 Gate - by T4vY - 04.08.2010, 09:06
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 04.08.2010, 09:37
Re: Simple Gates | 1 Line, 1 Gate - by a!DaN)_)-) - 04.08.2010, 20:16
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 05.08.2010, 18:34
Re: Simple Gates | 1 Line, 1 Gate - by sergio_xd - 05.08.2010, 19:56
Re: Simple Gates | 1 Line, 1 Gate - by Ash. - 06.08.2010, 09:15
Re: Simple Gates | 1 Line, 1 Gate - by a!DaN)_)-) - 06.08.2010, 17:24
Re: Simple Gates | 1 Line, 1 Gate - by Hal - 19.08.2010, 02:45
Re: Simple Gates | 1 Line, 1 Gate - by MBX97 - 14.10.2010, 06:05
Re: Simple Gates | 1 Line, 1 Gate - by g_aSlice - 14.10.2010, 07:05

Forum Jump:


Users browsing this thread: 1 Guest(s)