Jump to content
Sign in to follow this  
Deth Stryker

setpos not working

Recommended Posts

Been trying to use the setpos command to move an opfor officer from a prestaged area to the area where his assassination will occur.

officer1 setpos (getpos hit1)

hit1 being the name of the marker I am using to designate the area of the "hit".

Despite multiple setups of setpos and setposasl combined with getpos and getposasl, nothing makes the officer "teleport" to the marker as I want. I know my triggers are activating via a hint command.

This is simply being tested in the editor itself, not in a server.

By placing a "condition" into condition-of-presence, I would not need this method... But apparently that doesn't work either...

Please let me know what I am doing wrong, thanks for any help you can offer!

Share this post


Link to post
Share on other sites
Guest

When using a marker for a position, to reference that marker you have to use command - getMarkerPos "MarkerName" -

so -

officer1 setpos (getpos hit1)

Should be

officer1 setpos (getMarkerPos "hit1")

Share this post


Link to post
Share on other sites

you know that crossed my mind too, I didn't act on it... I have a bad habit of doing things verbatim from the wiki...

Thanks for pointing out my mistake!

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  

×