sora Posted August 19, 2015 Share Posted August 19, 2015 Is it possible to change the zombies lore with lua while the session is running? All my attempts have been unsuccessful, because the setting doesn't apply. Does it only apply to new worlds or am I missing something that sets the new settings? Link to comment Share on other sites More sharing options...
ModdedTibby Posted August 19, 2015 Share Posted August 19, 2015 That is correct. Zombie lore can only be changed upon a fresh world to my understanding at least. Link to comment Share on other sites More sharing options...
sora Posted August 20, 2015 Author Share Posted August 20, 2015 I was hoping I could dynamically change them =/ I found toLua(), updateFromLua(), applySettings() in the modding documents for SandboxOptions() so i tried to use toLua() but it only results in "Object table 0x8713310 did not have __call metatable set" and I have no idea what that means or how to fix it. I did try "SandboxVars.ZombieLore.Speed = 1; SandboxOptions():applySettings();" this gives no errors at all, but it doesn't actually change the zombie speed.. Link to comment Share on other sites More sharing options...
Jab Posted August 20, 2015 Share Posted August 20, 2015 I was hoping I could dynamically change them =/ I found toLua(), updateFromLua(), applySettings() in the modding documents for SandboxOptions() so i tried to use toLua() but it only results in "Object table 0x8713310 did not have __call metatable set" and I have no idea what that means or how to fix it. I did try "SandboxVars.ZombieLore.Speed = 1; SandboxOptions():applySettings();" this gives no errors at all, but it doesn't actually change It's possible that the zombie information is loaded for already-created zombies, hence not seeing the changes immediately. Worst case, you could try modifying each zombie individually. There are flags for each zombie, such as:float wanderSpeed;boolean bLunger;boolean bRunning;boolean bCrawling; Link to comment Share on other sites More sharing options...
sora Posted August 21, 2015 Author Share Posted August 21, 2015 Hmm I have still been unsuccessful in trying to apply "bRunning = true;" to each zombie, this appears to be above my skill level. But thanks for pointing me in another possible direction. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now