SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 07/04/2012, 05:30 PM   #1
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Romania
Posts: 3,006
Reputation: 469
Question Handle multiple objects.

Is there a mapping tool that allows you to copy and handle multiple objects at once? For example I would like to copy the Big Ear hill and use it. The problem is, I have to take every part and do the rotating and stuff. Can't we just handle the hill as one single object?

I successfully copied the hill wit this tool, but I coudn't find a way to handle it properly.
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me
"And yet people will still start new threads for the "dying" subject." - me

HeLiOn_PrImE is offline   Reply With Quote
Old 07/04/2012, 05:48 PM   #2
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,235
Reputation: 1004
Default Re: Handle multiple objects.

You could use AttachObjectToObject, then moving the one it is attached to will move the rest, on all axis.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 07/04/2012, 05:52 PM   #3
Manuel_P
Big Clucker
 
Join Date: Oct 2011
Location: The Netherlands
Posts: 63
Reputation: 43
Default Re: Handle multiple objects.

I don't know if there's a program that allows you to adjust a certain variable, so that the variable changes in every line, but I haven't found one yet. You can either use MP2's solution, or do it manually by:

Copy 1 object to the place where you want the hill.
Calculate the XYZ and rotation difference between that object, and its original object.
Copy the rest of the objects, and add the XYZ and rotation rotation differences manually to each object.

If it's more than 10 objects it might be a pain in the ass though..
__________________
http://cyphergaming.co.uk/
Manuel_P is offline   Reply With Quote
Old 07/04/2012, 09:23 PM   #4
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Romania
Posts: 3,006
Reputation: 469
Default Re: Handle multiple objects.

the attatching thing looks good, but how do I do that while editing?
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me
"And yet people will still start new threads for the "dying" subject." - me

HeLiOn_PrImE is offline   Reply With Quote
Old 07/04/2012, 09:40 PM   #5
Manuel_P
Big Clucker
 
Join Date: Oct 2011
Location: The Netherlands
Posts: 63
Reputation: 43
Default Re: Handle multiple objects.

Put the object you want to attach everything to at 0,0,0
Then align the other objects to it, and get their coordinates. Their coordinates are automatically the floats you'll need for the AttachObjectToObject function. When you did that, all you need to do is get back to the object at 0,0,0, and place it at the location you want. The rest of the objects will get attached to it.
__________________
http://cyphergaming.co.uk/
Manuel_P is offline   Reply With Quote
Old 08/04/2012, 06:32 AM   #6
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Romania
Posts: 3,006
Reputation: 469
Default Re: Handle multiple objects.

I'm kinda' noob at scripting, but I'll work my way with that. Thx
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me
"And yet people will still start new threads for the "dying" subject." - me

HeLiOn_PrImE is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question, selecting multiple objects Biesmen Scripting Help 4 20/10/2012 11:44 PM
How can i handle laggers? Admigo Help Archive 6 22/08/2011 10:58 AM
How much slots this VPS can handle ? aqu Client Support 3 15/03/2011 08:20 PM
multiple servers with multiple ips on linux yakuzza Server Support 2 09/10/2010 07:08 PM
Help needed with Multiple moveing objects by command 3d0v Help Archive 2 14/08/2009 11:43 PM


All times are GMT. The time now is 12:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.