Controlling config settings (fly/controls) through mod code

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Controlling config settings (fly/controls) through mod code

by LoseTheGame » Sat Oct 24, 2015 17:33

Hi guys,

I would like to be able to grant the player the ability to fly from within a mod. So for example, by completing a mission they'll be rewards with flying. I'd also like to be able to disable certain keys. So, I can do this directly in mintest.conf with...

free_move = true
keymap_inventory = false

...but is there a way I can modify such things through the mod code?

Thanks,

Jonty
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Controlling config settings (fly/controls) through mod c

by Don » Sat Oct 24, 2015 17:49

Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Controlling config settings (fly/controls) through mod c

by LoseTheGame » Sat Oct 24, 2015 21:42

Thanks Don.
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Controlling config settings (fly/controls) through mod c

by LoseTheGame » Sat Oct 24, 2015 21:56

Any idea about turning off certain controls such as "keymap_inventory = false"?
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 14 guests

cron