SA-MP Forums Archive
Move object... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Move object... (/showthread.php?tid=65845)



Move object... - [H]InVion_ - 16.02.2009

I've made a map and am using MidoStreamer to stream the objects. Basically, all I want to do is make this object:
Код:
CreateStreamObject(980, 528.965149, 2975.480713, 5.272058, 0.0000, 0.0000, 0.0000, 500);
Move down into the ground automatically once a RCON admin goes near it.
How can I do this?
Thanks.


Re: Move object... - loT4r - 16.02.2009

Search forum for "moving gates"


Re: Move object... - [H]InVion_ - 16.02.2009

Yes, thanks, but I want it to open automatically, not with a command..


Re: Move object... - Joe Staff - 16.02.2009

Use OnPlayerUpdate to determine if player's position is near the gate, and if it use run a function ONCE(means once'its opening don't bother opening it again//use variable) and if no player is near it, you close it ONCE (Best to use 1 variable per gate ie: new PDGateToggle


Re: Move object... - [H]InVion_ - 16.02.2009

Er.. thanks but... I really have no clue what the hell you are talking about


Re: Move object... - brett7 - 17.02.2009

use getplayertopoint and put it under onplayerupdate to check if they are in the area, if they are then the object moves


Re: Move object... - [H]InVion_ - 17.02.2009

Er... nevermind. I think I'll just make it a command.