Skip to content
Snippets Groups Projects

Add PlayerExit() Hook

Closed ChaoLoveIceMDBoy requested to merge (removed):player_exit_hook into next

I decided to make a new hook in SRB2 called PlayerExit() which requires no arguments. By the way, if you want to use functions that affect players make sure you use for player in players.iterate(). I made the following test Lua script for this new feature: playerexit_test.lua. By the way, I tested this Lua script, and this new feature worked like it is supposed to.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I'm not sure if you were aware, but a similar PlayerQuit hook was made by Prisima about a year ago in !127 (merged). It was not merged because we are not adding new features to 2.1 patches. It may be considered for 2.2 though.

    For this reason I'm closing this merge request too for now.

    (On another note, wow, I just realised we can't see what Prisima did for his/her own PlayerQuit hook, given the branch was deleted afterwards apparently)

  • added Lua label

Please register or sign in to reply
Loading