Page 1 of 1

[Events] on_player_cursor_stack_changed

Posted: Mon Jun 29, 2020 9:32 am
by Gerkiz
Hello,

We host multiple scenarios and I can't stress this enough - we have grifers almost every day.

Allowing on_player_cursor_stack_changed to have the event: item - would solve this issue with griefers since we can read from the cursor stack and prevent a player who is new to the server to not be able to use grenades, artillery, capsule etc.

It would be great if

Code: Select all

on_player_cursor_stack_changed
had the following:

Code: Select all

item :: LuaItemPrototype: The item put in the cursor
Thank you in advance.

Re: [Events] on_player_cursor_stack_changed

Posted: Mon Jun 29, 2020 9:39 am
by boskid
What is the purpose of duplicating data you can read from LuaControl::cursor_stack?

Re: [Events] on_player_cursor_stack_changed

Posted: Mon Jun 29, 2020 1:19 pm
by Gerkiz
Thank you Boskid, I have apparently missed this.

This is just what was needed.