idk how to do this…
b
What you meant is that, when a player purchasing something, for example a baseball bat from the shop, it will say like this?
When a player purchases a unit, When a player purchases an item
send message ( owner of ( ( last purchased unit's name ) ) bought a ( ( last purchased item ) ! ) ) ) to everyone.
or
When a player purchases a unit,
When a player purchases an item
send a message to ( owner of ( ( last purchased unit's name ) ) bought a ( ( last purchased item ) ! ) ) ) player's name.
This is when a player purchased something from the Unit
or Item
shop? If I’m incorrect about this script, please try to correct me, thank you.
Or I’m misunderstanding something here.
Summary
I’m on my phone right now. Try to message someone or ping someone here to help you, If I’m incorrect.
I realized that, there’s no trigger called When a unit purchases an item
.
Also, please elaborate on what you meant by “How do I detect the last purchasing player”, please.
Summary
Help me if you know, bruh.
when unit picks up item
is the trigger to use when you want to detect when a unit buys an item.
In a script triggered by when unit picks up item
, you would get the player using owner of (triggering unit)
. In a script triggered by when a player purchases a unit
, you would get the player using triggering player
.