Jump to content
Sign in to follow this  
mattxr

Teleport Script

Recommended Posts

As some of you may remember there was an Editor Guy Addon in ofp with the ability to teleport, slow time and show position, well i have made my own version for ArmA, but i need to get this one script working...

Quote[/b] ]hint "Click on Map to teleport"

onMapSingleClick "teleport = _pos; Checker = true; onMapSingleClick {}"

@Checker

Checker = false

teleportpos = [(teleport select 0),(teleport select 1),0]

player setpos teleportPos

Hint "At new postion"

any help would be great thx.

Share this post


Link to post
Share on other sites

Not sure what's not working but I think it's only going to work once - the OnMapSingleClick {} disables the command according to the Biki.

OnMapSingleClick "player SetPos _pos"

works fine as a line in the player's init, though.

Share this post


Link to post
Share on other sites

I use this one:

Teleport.sqs

-----------------------------------------------------------

teleport=true

titletext ["Click on the map to teleport yourself","plain down"]

onMapSingleClick "player setpos _pos;teleport=false"

@!teleport

onMapSingleClick ""

titletext ["","plain down"]

-----------------------------------------------------------

Regards,

Mr-Murray

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×