-ami- mofo 13 Posted July 28, 2014 Hi guys I have a trigger activated by blufor with this in the condition: {isPlayer _x} count thisList > 0; as I only want it activated by a player, not AI. The problem is the player is inside an AI controlled vehicle going through the trigger and the trigger won't fire. Anyway to get around this so it still sees the player inside the AI vehicle? Thanks. Share this post Link to post Share on other sites
barbolani 198 Posted July 28, 2014 vehicle player in thislist; or {vehicle player} count thislist > 0; Share this post Link to post Share on other sites
-ami- mofo 13 Posted July 29, 2014 Top stuff thanks mate. :) Will try later... Share this post Link to post Share on other sites
-ami- mofo 13 Posted July 29, 2014 This didn't work.... {vehicle player} count thislist > 0; But this did..... vehicle player in thislist; Not being a scripter could you please tell me what the difference is between these two bits of code? Share this post Link to post Share on other sites
barbolani 198 Posted July 29, 2014 one works, the other one not :) count is used to return a number from conditions, but they must be valid condition, like, for example {alive _x} count units group player; it returns the number of alive units in your group. The other line is different stuff... vehicle player returns the vehicle is using the player and not the soldier itself (except when it's not in a vehicle, of course) Share this post Link to post Share on other sites
-ami- mofo 13 Posted July 30, 2014 Sweet, thanks mate. Share this post Link to post Share on other sites
-ami- mofo 13 Posted August 2, 2014 I just discovered a bit of a hiccup. this... vehicle player in thislist; works fine in MP for me (being the host machine) but isn't triggered by the other players. this... {vehicle player} count thislist > 0; doesn't work at all for anybody including me. What code would make it work for everybody? Share this post Link to post Share on other sites
barbolani 198 Posted August 2, 2014 {(vehicle _x in thislist)} count playableUnits > 0; Try that! (Not an MP expert, I'm afraid) Share this post Link to post Share on other sites
-ami- mofo 13 Posted August 3, 2014 Hi mate I just ended up grouping the trigger to the group team leader and choosing activation 'anybody in the group'. That works. But I'll try yours too! thanks. Share this post Link to post Share on other sites