[Events] on_player_cursor_stack_changed

Things that we aren't going to implement
Post Reply
User avatar
Gerkiz
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Fri Nov 30, 2018 3:36 pm
Contact:

[Events] on_player_cursor_stack_changed

Post 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.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2250
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [Events] on_player_cursor_stack_changed

Post by boskid »

What is the purpose of duplicating data you can read from LuaControl::cursor_stack?

User avatar
Gerkiz
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Fri Nov 30, 2018 3:36 pm
Contact:

Re: [Events] on_player_cursor_stack_changed

Post by Gerkiz »

Thank you Boskid, I have apparently missed this.

This is just what was needed.

Post Reply

Return to “Won't implement”