on_player_used_capsule

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1197
Joined: Wed May 18, 2016 4:55 pm
Contact:

on_player_used_capsule

Post by Mooncat »

Request: a new event

on_player_used_capsule
Called when player uses a capsule.
Contains
  • player_index :: uint
  • item :: string: Name of the used capsule.
  • position :: Position (Optional): Where the capsule is thrown to. It is nil if capsule action type is not "throw".
Would be handy to replace the approach of creating dummy entity + on_trigger_created_entity + surface.find_entity to find the player who used a capsule. :D
Post Reply

Return to “Implemented mod requests”