SA-MP Forums Archive
LS Elevator at other place. - 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: LS Elevator at other place. (/showthread.php?tid=280962)



LS Elevator at other place. - Sreadon - 03.09.2011

Hello all,

I actually work on a mapping in San Fierro for a server. I've rebuild the famous "LS elevator" tower in SanFierro, but I would like to use LS elevator filterscript with this tower. I've watched the LS elevator filterscript who is in LosSantos, but I don't know something: what's coords I need? And how to get them because in MTA the tower isn't exactly such as SAMP tower. This filterscript is really cool, and I will be happy to use it..

Thank's,
Sreadon.


Re: LS Elevator at other place. - Naruto_Emilio - 03.09.2011

Make yours and this function will help you
pawn Код:
MoveObject(objectid, x, y, z, speed);



Re : LS Elevator at other place. - Alvin007 - 03.09.2011

It's a bit impossible , cuz you can move only the 0.3c objects wich are the elevator only , you cant move the whole building and as he said use ^ UP


Re: Re : LS Elevator at other place. - DRIFT_HUNTER - 03.09.2011

Quote:
Originally Posted by Alvin007
Посмотреть сообщение
It's a bit impossible , cuz you can move only the 0.3c objects wich are the elevator only , you cant move the whole building and as he said use ^ UP
The building is still object so its mean we are able to create it


Re : LS Elevator at other place. - Sreadon - 03.09.2011

I've already seen a server with this bulding and this FS in SanFierro.. so it's possible. I just ask how to know the coords for the elevator.


Re: LS Elevator at other place. - Virtual1ty - 03.09.2011

Here's how I think you should approach this, as I have recently done this for a friend of mine who put a similiar 0.3c office building which had support for elevator's so I added them up.

So firstly, you map your building or whatever in MTA, then you put the elevator object itself (only from sa-mp 0.3 and later-you'll need to mod your MTA (if you haven't), search the forums!)

When you're all finished with the elevator add the doors, there is one door for the left and one for the right.
Then preferably how I have done this is I put another elevator and doors on the next floor, then saved it all up,
converted MTA code to PAWN code and got the objects positions.
The most basic thing here to realise is that you need offsets, offset for each elevator Z coord, which is it's height.
You can think of it as the elevator object Z coord for each floor, or the Z coord for each floor itself.
Then you just get them offsets from the elevator and the door's and start making it up.

Note that all of this is if you're trying to do it for another building which isn't the LS Office Building. If it is - do as suggested, use MoveObject.

Edit: I know somebody already released a handy tool for moving all objects to a new position at once, now I have found it again, so I think THIS might come in handy to you, made by Gamer931215.


Re : LS Elevator at other place. - Sreadon - 03.09.2011

Thank's, I'll try to do it.


Re: LS Elevator at other place. - firechief - 04.09.2011

My scripter moved that elevator into the building in San Fierro. I don't know how he did it exactly as I only mapped the building itself there. He will have to explain it, but I do know it involved a lot of mathematics and it took several days to get it just right.


Re: LS Elevator at other place. - Phanto90 - 04.09.2011

Quote:
Originally Posted by firechief
Посмотреть сообщение
My scripter moved that elevator into the building in San Fierro. I don't know how he did it exactly as I only mapped the building itself there. He will have to explain it, but I do know it involved a lot of mathematics and it took several days to get it just right.
Just mapping and put an elevator to each level.
Then get the coordinates of all the elevator to know where to move the elevator.
Obviously the other elevator object has to be deleted before putting the map in pwn and leave only the one that moves.