Search the Community
Showing results for tags 'and statement'.
Found 1 result
Hi there. I'm having an issue with setting a trigger to activate when all items are collected, but I'm having trouble properly formatting an "and" statement. When the item is collected, the deleteVehicle command is used to remove the item from the world space, so I have a statement that basically says "When money 1 AND money2 AND money3 AND money4 AND money5 are not alive, then activate the settaskstate module. The variables for the money items are all set and have a script to delete each item on pickup. What is the proper way to format this statement? I've tried many variants, but this is my current code currently in the init field of the trigger. (!alive money1) && (!alive money2) && (!alive money3) && (!alive money4) && (!alive money5)