Gurkengelee
New Member
- Reaction score
- 0
Hey everybody!
I want to trigger a bankrobbery for my LOAP map. There is the possibility to add gold to your bank account and when you do it a gold coin appears in the vault. My idea was that if you break into the vault and steal a goldcoin a random bank account gets reduced by 50 gold.
But since I have no idea how to check which accounts have at least 50 gold and therefore reduce the trigger to them I came up with the idea to take a random variable 1 - 10 (there are 10 players who can have a bank account) and check if bankaccount(random) has at least 50 gold or else run the trigger again. Will this work? Or is there even an easier method? I would appreciate every help
I want to trigger a bankrobbery for my LOAP map. There is the possibility to add gold to your bank account and when you do it a gold coin appears in the vault. My idea was that if you break into the vault and steal a goldcoin a random bank account gets reduced by 50 gold.
But since I have no idea how to check which accounts have at least 50 gold and therefore reduce the trigger to them I came up with the idea to take a random variable 1 - 10 (there are 10 players who can have a bank account) and check if bankaccount(random) has at least 50 gold or else run the trigger again. Will this work? Or is there even an easier method? I would appreciate every help