Scripts / How is lightswitch used.

Author
Message
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 26th Mar 2015 16:10
I need to be able to switch on and off the lights in a level using the lightswitch.lua, but I can't seem to get it working any ideas????? Is it because lights are markers and not entities.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Mar 2015 16:51
are you applying the script to the light itself?
seems to be a range issue, change it to about 450~500 and it works
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 26th Mar 2015 17:11
i might try that thanks, hey it works, thanks smallg, have you looked at my music in the GameGuru store, most is FREE! Enjoy.

Here is the link

http://en.tgcstore.net/?md=artist-view&aid=219730
ccliffy
21
Years of Service
User Offline
Joined: 2nd Apr 2003
Location:
Posted: 31st May 2015 18:25
now need a light switch entity
PM

Login to post a reply

Server time is: 2024-12-22 01:26:33
Your offset time is: 2024-12-22 01:26:33