Jump to content
Sign in to follow this  
{Op4}Bsilenced

trigger condition

Recommended Posts

i just found out player in thislist doest work in a dedi server..

what else would be the best way to detect a player?

Share this post


Link to post
Share on other sites

If it's only in the editor and if you only got a few units to check then you can identify each players with a variable name (westUnit1, westUnit2...) then you just have to set a condition similar to:

westUnit1 in thisList || westUnit2 in thisList...

If you're into scripts, there's a BIS function to know whether a unit is in a trigger or not (modules\Functions\misc\fn_inTrigger.sqf).

Share this post


Link to post
Share on other sites

i thought of that, i got 24 unts m8..

---------- Post added at 06:52 PM ---------- Previous post was at 06:41 PM ----------

i see i dont undertand how to use it though

Description:

Detects whether is position within trigger area.

Parameter(s):

_this select 0: Trigger

_this select 1: Position

_this select 2: OPTIONAL - scalar result (distance from border)

Share this post


Link to post
Share on other sites

{isplayer _x} count thislist > 0

Or something along that idea.

Share this post


Link to post
Share on other sites

update it does work dedi....................

new question, old topic

i just got done moving all my triggers into script created triggers...and now objective creating triggers dont update while playing,, jip still works go figure...

condition of the trigger maybe example= objective1

and im pubvaring objective1 true...

at first i had the triggers wraped in is server check and then i tried removing it.

so any idea y this might be happening?

---------- Post added at 09:32 AM ---------- Previous post was at 09:27 AM ----------

this all worked prior dedi or not jip or not now it just doesnt work on dedi...

Share this post


Link to post
Share on other sites

i set all the obj trigger back into the mission sqm and they work, the obj comple triggers work fine in script, wish i new y that was happening...

Share this post


Link to post
Share on other sites

Triggers created with createtrigger command are local. You sure they are created for everyone?

Share this post


Link to post
Share on other sites

no im not, but im sure each player joining the init went to the tasks sqf and those scripted triggers didnt have a isserver check on them...

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  

×