Add setting to enable mouse control by default
parent
1948e75d28
commit
e3ce04c107
|
@ -50,7 +50,7 @@ minetest.register_entity("helicopter:heli", {
|
|||
hp_max = 50,
|
||||
color = "#0063b0",
|
||||
_passenger = nil,
|
||||
_by_mouse = false,
|
||||
_by_mouse = helicopter.turn_player_look,
|
||||
|
||||
get_staticdata = function(self) -- unloaded/unloads ... is now saved
|
||||
return minetest.serialize({
|
||||
|
|
10
settings.lua
10
settings.lua
|
@ -1,6 +1,12 @@
|
|||
|
||||
--- Determines handling of punched helicopter.
|
||||
--
|
||||
-- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
|
||||
-- - Default: false
|
||||
-- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
|
||||
-- - Default: false
|
||||
helicopter.pick_up = minetest.settings:get_bool("helicopter.pick_up", false)
|
||||
|
||||
--- Determines default control of helicopter.
|
||||
--
|
||||
-- Use facing direction to turn instead of a/d keys by default.
|
||||
-- - Default: false
|
||||
helicopter.turn_player_look = minetest.settings:get_bool("mount_turn_player_look", false)
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
# If enabled, places helicopter in inventory instead of destroying it
|
||||
# when punched.
|
||||
helicopter.pick_up (Place in inventory) bool false
|
||||
|
||||
# Use facing direction to turn instead of a/d keys by default.
|
||||
mount_turn_player_look (Turn with look direction) bool false
|
||||
|
|
Loading…
Reference in New Issue