Data Realms Fan Forums
http://45.55.195.193/

Help with lua console
http://45.55.195.193/viewtopic.php?f=73&t=16009
Page 1 of 1

Author:  dannybates1994 [ Sun Jul 26, 2009 1:15 pm ]
Post subject:  Help with lua console

in the lua console there is a command which when your brain gets destroyed the game still carries on. i looked on CC wiki and could not find it. does anyone know what it is please ?

Author:  Mind [ Sun Jul 26, 2009 2:51 pm ]
Post subject:  Re: Help with lua console

You could just spawn a brain in like the very corner of the map so he game doesn't end.... but for your problem, I'd assume using:

Code:
if not MovableMan:IsActor(self:GetPlayerBrain(player)) then
       (spawn brain code maybe)
end


This should spawn the brain every time it's not there. Idk what the variables for ending the game are, so.... :3

Author:  MaximDude [ Sun Jul 26, 2009 2:54 pm ]
Post subject:  Re: Help with lua console

You can just set the brain to 'GetsHitByMos = 0' and enemies won't be able to destroy it.

Author:  dannybates1994 [ Sun Jul 26, 2009 9:26 pm ]
Post subject:  Re: Help with lua console

thanks

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/