ModWorkshop
Need help with finishing a mod for PD TH - Printable Version

+- ModWorkshop (https://modworkshop.net)
+-- Forum: Discussion (https://modworkshop.net/forumdisplay.php?fid=1)
+--- Forum: Modding (https://modworkshop.net/forumdisplay.php?fid=72)
+--- Thread: Need help with finishing a mod for PD TH (/showthread.php?tid=7928)



Need help with finishing a mod for PD TH - Marcus - 06-02-2019

Basically my mod is ready but i need to set a requirement in it - make it work only in single player mode , because it's simply a "cheat"/for fun only . The mod is basically changing brenner stats to make it work like a minigun . Obviously im using dorhud/dahm . So , does anyone know how to set the single player mode requirement ? Thanks in advance


RE: Need help with finishing a mod for PD TH - Luffy - 06-03-2019

This code is for PD2 but I think should work for PDTH.


Friends only/Offline/Private:
Global.game_settings.permission == "friends_only" or Global.game_settings.permission == "private" or Global.game_settings.single_player
Add this to some if statement before you run the mod's code.