OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 16 Oct 2002, 23:21:57

Title: Need some help with setPos
Post by: Wildebeest on 16 Oct 2002, 23:21:57
Hi, does anyone know how to make an object "teleport" to the position of another object? I know how to teleport something to a specified pos on the map, but not to another object. Plz help me yall... thx  :)
Title: Re:Need some help with setPos
Post by: Kaliyuga on 17 Oct 2002, 00:52:06
just use this syntax...


this setpos [getpos objectname select 0, getpos objectname select 1,0]

objectname is the name you designate in the editor for that unit
Title: Re:Need some help with setPos
Post by: Sui on 17 Oct 2002, 00:52:46
Try:

object1 setpos (getpos object2)

;)
Title: Re:Need some help with setPos
Post by: Wildebeest on 17 Oct 2002, 11:49:07
Wow it works! Thx for the spells guys :wave: