another var ?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

another var ?

Post by ViPER »

can i take -

local.origin

and then add to it? - e.g. another object to be lower (z -40)

How can i do that?
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

Allo :P ,

u can do it like this,

Code: Select all

$your_crazy_thingie.origin = (($some_other_crazy_thingie.origin) + ( 0 0 -40))
Richard
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Cool thanks, you saved me. Ive set over 100 triggers and i would have had to resize them all to make this work otherwise.
Post Reply