Jump to content
Sign in to follow this  
aseliot

Trigger that detects any object

Recommended Posts

I thought I did this somewhere before but nothing i've tried so far has worked.
I wanted to make a trigger that detects objects in it, just anything and then checks it for something. But I can't get the basic thing to work...

trigger = createTrigger ["EmptyDetector", (getPos player)];
trigger setTriggerArea [300, 300, 0, false];
trigger setTriggerActivation ["ANY", "PRESENT", true];
trigger setTriggerStatements ["true", "systemChat format['%1',this];", ""];
trigger attachTo [player];

I've tried STATIC, ANY, LOGIC. But it doesn't do anything.

 

Share this post


Link to post
Share on other sites

At least that does something, but it only prints the player.

Share this post


Link to post
Share on other sites

I've gone from using a trigger to just using nearestObjects in a loop.

  • Like 1

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  

×