Jump to content

How do I make lights that can turn on and off?


StapleNinja

Recommended Posts

Ok so guys I was wondering how one would go about making lights that can turn on and off in the CS. I do know you need scripts etc. but I suck at scripting and Im not sure on the specifics.

 

If anyone could point me in the right direction it would be greatly appreciated. :biggrin:

 

:thanks:

 

-SN- :ninja:

Link to comment
Share on other sites

a simple example (you'll need 2 activators for this )

 

begin onActivate
[ObjectRefID.].disable
end

 

and for the other activator

begin onActivate
[ObjectRefID.].enable
end

 

 

to use one activator you must use this condition [ObjectRefID.]GetDisabled ==

 

like this :

 

begin Onactivate 

if [ObjectRefID.]GetDisabled == 1 
[ObjectRefID.].enable
elseif [ObjectRefID.].disable
endif
end

 

where [ObjectRefID.] is the id of the light bulb

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...