Page 1 of 1

on_player_used_capsule

Posted: Thu May 04, 2017 3:33 am
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