Jump to content
Sign in to follow this  
legion7698

Finding out who tripped a detection trigger

Recommended Posts

Hey all,

So my second question for the day. If I place a detected by trigger within an MP mission, is there anyway of finding out who was detected and then placing a marker at there position for further scripting later.

regards,

LEGION7698.

Share this post


Link to post
Share on other sites

Well, yes apart i've no clue if it works in MP or not.

Create an invisible marker, name it "detection_marker", then in your "detected by" trigger, put the following code in the "on activation" field :

"detection_marker" SetMarkerPos getpos (thislist select 0);"detection_marker" SetMarkerType "marker"

and in the "on deactivation" field, to make the marker disappear if nobody is detected anymore :

"detection_marker" SetMarkerType "empty"

Share this post


Link to post
Share on other sites

Hey ProfTournesol,

Cheers for the help. I will check MP compatibillity later on tonight.

Regards,

LEGION7698.

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  

×