View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:46 am



This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
 Help with lua console 
Author Message

Joined: Sun Jul 26, 2009 1:11 pm
Posts: 2
Post 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 ?


Sun Jul 26, 2009 1:15 pm
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Post 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


Sun Jul 26, 2009 2:51 pm
Profile
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Post Re: Help with lua console
You can just set the brain to 'GetsHitByMos = 0' and enemies won't be able to destroy it.


Sun Jul 26, 2009 2:54 pm
Profile

Joined: Sun Jul 26, 2009 1:11 pm
Posts: 2
Post Re: Help with lua console
thanks


Sun Jul 26, 2009 9:26 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.057s | 13 Queries | GZIP : Off ]