SA-MP Forums Archive
Sa-mp 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: Sa-mp Help (/showthread.php?tid=403907)



Sa-mp Help - coolmark1995 - 01.01.2013

is there a way to script a moving object or like the elevator script except in a new location? ive been searching but I havent found anything on it


Re: Sa-mp Help - Laure - 01.01.2013

Yes there is a way which works on MoveDynamicObject or same function how do you want it we may help you.


Re: Sa-mp Help - coolmark1995 - 01.01.2013

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Yes there is a way which works on MoveDynamicObject or same function how do you want it we may help you.
well I was wondering how I could make the elevator apear in a diffrent place


Re: Sa-mp Help - DaRk_RaiN - 01.01.2013

Well you can do this, after the player gets in the elevator, close it and set his position to the new elevator place, DestroyObject of the old elevator and CreateObject to its new position.


Re: Sa-mp Help - Threshold - 01.01.2013

Or SetObjectPos to make things easier.

https://sampwiki.blast.hk/wiki/SetObjectPos


Re: Sa-mp Help - Laure - 01.01.2013

Quote:
Originally Posted by coolmark1995
Посмотреть сообщение
well I was wondering how I could make the elevator apear in a diffrent place
Didn't get you do you want it to be movable on using a particular command or what do you mean?


Re: Sa-mp Help - coolmark1995 - 01.01.2013

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Didn't get you do you want it to be movable on using a particular command or what do you mean?
ok like I know there is an office building in the ls_elevator script that the elevator works by pressing y but I was wondering if I could keep that and have another elevator at a diffrent location is this possible?


Re: Sa-mp Help - Laure - 01.01.2013

Yea you can but you should map the objects location first; map the objects at the location you desire.


Re: Sa-mp Help - coolmark1995 - 01.01.2013

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Yea you can but you should map the objects location first; map the objects at the location you desire.
thanks man +REP