Code: Select all
Only custom shortcut prototypes with the action type "lua" can be used. For all others there are specific functions/properties.Code: Select all
Only custom shortcut prototypes with the action type "lua" can be used. For all others there are specific functions/properties.The character doesn't exist, at least can't be retrieved when, the player is in a vehicle. I haven't checked if the LuaEntity is still valid when the player is in a vehicle, if one had it already. It'd be a little wonky logic to make it work, because if the character is no longer associated with the player, the controllers, .vehicle, etc would need to be consistent (detaching the character would leave the character valid, and the player without one).Silari wrote: Sun Dec 07, 2025 11:20 pm Can't you just read that from the player's LUAEntity?
allow_dispatching_robots