#giving player money

1 messages · Page 1 of 1 (latest)

stark turret
#

You are on the right track with the event definition / receiver / sender. Make sure your sender is going to others or target player, and make sure that is configured so on the receiver "local player" is the target. Forward the amount as an event input.

stark turret
#

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).

somber carbon
#

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

stark turret
#

On your event receiver, check if the target player == local player, and then add the amount to their money.

stark turret
#

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.

stark turret
somber carbon