[0.18.17] LuaPlayer::set_shortcut_toggled doesnt toggle shortcut
Posted: Fri Apr 03, 2020 2:36 pm
Hey,
so if I run this Command:
It switches between true and false, BUT it doesnt toggle the shortcut so my exoskeleton is still enabled, what shouldnt be.
Same goes with "toggle-personal-roboport".
Greetz,
Luzifer
so if I run this Command:
Code: Select all
/c
local player = game.get_player( "LuziferSenpai" )
local shortcut = "toggle-equipment-movement-bonus"
if player.is_shortcut_toggled( shortcut ) then
game.print( "true" )
player.set_shortcut_toggled( shortcut, false )
else
game.print( "false" )
player.set_shortcut_toggled( shortcut, true )
end
Same goes with "toggle-personal-roboport".
Greetz,
Luzifer