Scripts / Light Lua Commands

Author
Message
Tarkus1971
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 15th Jul 2018 15:22
I can attach a light to player entities using lua, but can we rotate spotlights using lua now, or are the commands yet to be added?
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
geistschatten
6
Years of Service
User Offline
Joined: 10th Apr 2012
Playing: GameGuru
Posted: 13th Sep 2018 09:49
I'm curious about the same thing. If lights (more specifically spotlights) are able to be moveable and attached, it could be an alternative to the existing flashlight.
Tarkus1971
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 13th Sep 2018 10:34
Yes it works well as an alternative to a flashlight, you can make the fog thicker and closer to the player and of course limit the camera viewing distance too.

That improves framerate greatly.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
AmenMoses
GameGuru Master
2
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Sep 2018 10:40
You can crib off these scripts.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Tarkus1971
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 13th Sep 2018 11:21
cool thanks amenmoses
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
geistschatten
6
Years of Service
User Offline
Joined: 10th Apr 2012
Playing: GameGuru
Posted: 17th Sep 2018 01:18
Thank you AmenMoses!

The lamp.lua script appears to work by assigning to a dynamic entity. And what does the lamplight.lua do? Or is it required by the first script?
AmenMoses
GameGuru Master
2
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Sep 2018 08:45
lamp.lua is attached to the lamp/torch entity, lamplight.lua is attached to the light, i.e. a dynamic spotlight. I doubt if they will work properly for you as they are, I only posted them so you could see how to use the Lua commands.
Been there, done that, got all the T-Shirts!
PM
geistschatten
6
Years of Service
User Offline
Joined: 10th Apr 2012
Playing: GameGuru
Posted: 17th Sep 2018 09:49
Ah, okay. Thank you anyway, I usually learn best by looking at existing code rather than trying from scratch. The commands and whatnot will help me.

Login to post a reply

Server time is: 2018-11-21 19:40:04
Your offset time is: 2018-11-21 19:40:04