Specter 0 Posted July 7, 2004 problem: i need a trigger which detects wether a player is used or not... "vehicle present" seems not to work and i tried a few workarounds which didn't work either... so i'm really lost and frustrated now... maybe someone can give me a condition or whatever which detects the missing player... i need it to activate a move-waypoint for the extraction-vehicles... they should move when every existing player is onboard or dead... but with one or more players missing i can't get it working... Share this post Link to post Share on other sites
terox 316 Posted July 7, 2004 a trigger covering the entire playable area activated by the players side name "TX_Everyunit" Repeating Activated by West (or playable side) Condition: This and a script line to check how many units are alive on west would be #START ~5 {tx_Count= (Count alive _x)} ForEach list tx_Everyunit {tx_Cargo= (Count _x in choppername)} ForEach list tx_Everyunit ?(tx_count == tx_Cargo): goto "EXTRACT" goto "START" #EXTRACT do whatever is required here ******************************************* The line {tx_Cargo= (Count _x in choppername)} ForEach list tx_Everyunit maybe incorrect but that should give you the general idea Share this post Link to post Share on other sites
Specter 0 Posted July 7, 2004 thanks, i'll test it later... does this script check for every west (player side) unit or only for player-controlled units? Share this post Link to post Share on other sites
Specter 0 Posted July 7, 2004 now here comes the scripting-newbie: what do i have to do exactly to exec this script?! i named it end.sqs Share this post Link to post Share on other sites
terox 316 Posted July 7, 2004 thanks, i'll test it later...does this script check for every west (player side) unit or only for player-controlled units? Script counts the number of units that are seen by the trigger as side: west so thats everything. You could add playable units into a Player array and then query the array to execute a script [] exec "End.sqs" Share this post Link to post Share on other sites
Specter 0 Posted July 7, 2004 You could add playable units into a Player array and then query the array how would i do this?! Share this post Link to post Share on other sites