Full Version : Whats the best method for changing location?
xmlspawner >>Q&A >>Whats the best method for changing location?


<< Prev | Next >>

Steelcap- 10-08-2007
Can you change a target's location with a single function? or do the x y and z properties need to be edited one at a time?

Example.

SETONTHIS/x/GETONTRIGMOB,x/y/GETONTRIGMOB,y/z/GETONTRIGMOB,z

Is it posible to do a.. SETONTHIS/Location.xyz/GETONTRIGMOB,Location.xyz?

ArteGordon- 10-09-2007
you can do it like this

SETONTHIS/Location/(200,1500,0)

You need to use the parentheses because that is the way Point3D values are formatted.

That means that the return value of a Point3D variable like Location obtained through one of the GET keywords will be formatted that way so that

SETONTHIS/Location/{GETONTRIGMOB,Location}

should work.

Steelcap- 10-09-2007
Fantastic, thanks very much Arte