Object help - 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)
+--- Thread: Object help (
/showthread.php?tid=498418)
Object help -
Lidor124 - 03.03.2014
What object id or name is that: its a white small bridge and in size of the tunnel...
Another think i need help:
How to make it go up slowly with RotY... i mean like Pay N Spray, and btw what its sound on Pay N Spray (PlayPlayerSound function)
Note: the gate is close on the start
Codes:
Код:
Open gate:
MoveDynamicObject(GarageGateStatus, 2037.09961, -1840.7998, 16.6, 0, 90, 0); //OPEN
Close gate:
MoveDynamicObject(GarageGateStatus, 2037.09961, -1840.7998, 14.6, 0, 0, 0); //CLOSE
+REP !!
Re: Object help -
Lidor124 - 05.03.2014
BUMP
Re: Object help -
XK - 05.03.2014
First of all the parameters of MoveDynamicObject arent true it should be:
MoveDynamicObject(gate name...,X,Y,Z,speed)
And you cant control the Rotx and rotz and roty by MoveDynamicObject,i prefer making like when you are near it it or type a command it goes up and the same for closing..
So to make it go slowly use:
pawn Код:
MoveDynamicObject(GarageGateStatus, 2037.09961, -1840.7998, 16.6, 2); //open
MoveDynamicObject(GarageGateStatus, 2037.09961, -1840.7998, 14.6, 2); //close
and you can get the sounds here:
https://sampwiki.blast.hk/wiki/SoundID
and to get the bridge id Write in ******:Mta download
download it and there you can search for objects search for Bridge and you will find it