[FS] ObjectCalc - Useful for moving already created big structures. - lameguy - 24.03.2010
[FS]ObjectCalc - Object Position Calculator
What is ObjectCalc?
ObjectCalc is simple filterscipt what you can use to move or rotate your CreateObject code.
For example if you have created some structure which includes 50 objects, and you need to move it for instance X +500 and Y + 300,
this is the right tool you should use.
Using this you don't need to calculate every objects new position one by one.
Why should I download this?
If you have created some structure and you need to move or rotate it,
and you are too lazy to create your structure again with map editor in new place.
Download:
View the code
Install:
Copy the code from
here.
Open your pawn editor, and paste it there.
Then copy your CreateObject code you want to edit,
and paste it to OnFilterScriptInit.
Next you have to replace CreateObject with CalculateCoords.
Go to menu panel > Edit > Replace or press Ctrl + H.
Replace every CreateObject with CalculateCoords EXCEPT the one at stock CalculateCoords.
Then set the differences of coordinates you like them to be after editing coordinates.
Find this part of code:
#define DifferenceX 0.0
#define DifferenceY 0.0
#define DifferenceZ 0.0
#define DifferenceRX 0.0
#define DifferenceRY 0.0
#define DifferenceRZ 0.0
and edit the differences like you wish.
Then compile your script to .amx file and run it on your server.
(/rcon loadfs ObjectCalc).
After that you should have the code in you scriptfiles folder in file called "MovedObjects.txt".
Hope you find it useful.
Re: [FS] ObjectCalc - Useful for moving already created big structures. -
Geso - 24.03.2010
I think this is a good idea, had the problem a few times already, maybe you could develop it so it can do the same with other object sorts like CreateStreamObject.
PS: take a close look at my name, maybe you recognize me
Re: [FS] ObjectCalc - Useful for moving already created big structures. -
legodude - 24.03.2010
im building server with geso
u recognized me already ^^
we are kinda searching for sumthing like taht for a week or three so this will come in handy
Re: [FS] ObjectCalc - Useful for moving already created big structures. - lameguy - 24.03.2010
Yea, i remember you both from lsrcr.
Re: [FS] ObjectCalc - Useful for moving already created big structures. -
^Woozie^ - 24.03.2010
http://forum.sa-mp.com/index.php?topic=70432.0
Re: [FS] ObjectCalc - Useful for moving already created big structures. - lameguy - 24.03.2010
Quote:
Originally Posted by ^Faus
|
for what is that link for?
Re: [FS] ObjectCalc - Useful for moving already created big structures. -
Winded - 24.03.2010
Looks like a great mod, were almost saying that you copy my sandbox mod but this is for already made objects :P
Good job
Re: [FS] ObjectCalc - Useful for moving already created big structures. - lameguy - 25.03.2010
Thanks guys
Re: [FS] ObjectCalc - Useful for moving already created big structures. -
Norn - 08.09.2010
Links dead.