| 05-19-2005, 07:59 PM | #1 |
exitwhen ( GetPlayerState(Player(0), PLAYER_STATE_RESOURCE_FOOD_USED) >= 5 ) This is a script I saw in a game, and I want to incorporate it into my game. I realize it stops the trigger from looping when they have 5 or more food used, but how do I make it so it will "GetPlayerState" of the triggering player? Edit: sorry for putting this in the wrong forums, and thank you sadism for the help. |
| 05-19-2005, 08:41 PM | #2 |
You want it to look like this: exitwhen ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_FOOD_USED) >= 5 ) |
