Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 57 Guests
Online:

LATEST FORUM THREADS

»
re: enabling cheats on Eli...
Star Trek Voyager: Elite F...
Using Teamspeak
Teamspeak Servers
eXtreme+ v2.9
CoDBO Map + Mod Releases

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD+UO General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Moving a brush to a postion of another brush
s4ntiago
General Member
Since: Dec 17, 2006
Posts: 151
Last: Feb 10, 2011
[view latest posts]
Level 4
Category: CoD+UO General
Posted: Wednesday, Jul. 22, 2009 10:58 pm
I need to write a script that will move brush (A) to the location of brush (B). But the tricky part is this...

Brush (A) will not always be in the same location. So I need (B) to move to the location of (A) (not moveto x,x,x).

Also, when (A) is in position of (B) I need it to move an additional amount of units so that the brushes are not overlapping.

Hopefully that is clear enough to understand. Any help would be appreciated. (:
Share |
s4ntiago
General Member
Since: Dec 17, 2006
Posts: 151
Last: Feb 10, 2011
[view latest posts]
Level 4
Category: CoD+UO General
Posted: Wednesday, Jul. 22, 2009 11:17 pm
Thinking about it some more, I didn't explain it right.

I want to get the location or orgin of (B) so that I can move (A) to the same location on the X and Y axises. The Z axis won't be the same. I don't want the brushes to touch at all. Once I have both brushes aligned on X and Y, I can move the brush over and then move it on Z to the same height.
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD+UO General
Posted: Thursday, Jul. 23, 2009 12:17 am
Quote:
(not moveto x,x,x).

why?
Share |
ellard8
General Member
Since: Aug 25, 2008
Posts: 80
Last: Oct 17, 2016
[view latest posts]
Level 3
Category: CoD+UO General
Posted: Thursday, Jul. 23, 2009 12:57 am
It could be diagonal?

Just move it to origin, x, y, z

like move 1024,43,-34
move 24,34,0
Share |
s4ntiago
General Member
Since: Dec 17, 2006
Posts: 151
Last: Feb 10, 2011
[view latest posts]
Level 4
Category: CoD+UO General
Posted: Thursday, Jul. 23, 2009 01:23 am
In response to both of you:

Brush (B) willl not always have the same orgin or be in the same spot. Brush (A) will need to move to wherever Brush (B) is at the time. In a sense, (B) will be moving around the map and (A) will be following it. Turn by turn kinda.

So I need to find a way to get the current location of (B) and move (A) to it. But not so as they are intersecting. So its kinda like "move brush (A) to brush (B) orgin - 75 on the Z axis.

edited on Jul. 23, 2009 04:26 am by s4ntiago
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD+UO General
Posted: Thursday, Jul. 23, 2009 08:34 am
make both individual script_brushmodels, assign a targetname and control them via script:

Code:
brush_b = getent("brush_b", "targetname");
brush_a = getent("brush_a", "targetname");

// MOVE BRUSH_B
brush_b moveto( (100, 200, 300), 5 );

// WAIT SOME TIME (optional)
wait(4);
// or: brush_b waittill("movedone"); to sync

// MOVE BRUSH_A (x & y = brush_b, z = brush_a)
brush_a moveto( ( brush_b.origin[0], brush_b.origin[1], brush_a.origin[2] ), 5 );


edited on Jul. 23, 2009 11:35 am by Sevenz
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD+UO General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»