Scripting Handout 2
Teleport object to a given location

>>> SCRIPT BEGINS BELOW <<<

;teleport_object.sqs
;This script will teleport a given object to a location identified by a 
marker.
;The script takes in two arguments:
;_myobject is the object to be teleported
;_mymarker is the marker name

_myunit = _this select 0
_mymarker = _this select 1

;teleport the object
_myunit setpos getmarkerpos _mymarker

;display hint. Comment out if not wanted.
hint "object teleported"

exit

