#giving player money
1 messages · Page 1 of 1 (latest)
Configure the event definition and add 2 properties: target player and amount int
If you want, you could even add a sender player
then: Configure the receiver and sender to that definition.
For the sender: Configure the chip to "send to others" OR send to player. (you can skip adding the target player input if you use send to player, as it will add this).
Send an Event and change the property’s and add an Int and a Player
Put the player selected in the player Input and the value in the Int. Then I’m the receiver get a If Player is Local (Player) If they are local take their Int and add it
On your event receiver, check if the target player == local player, and then add the amount to their money.
Oh mb
Before the sender, add something that subtracts the amount from the current player, then use the event sender to the other person. Make sure you don't allow negative numbers, or they can basically steal money from the target.
The joy of dual-typing. 🙂
W