Product Chat / attach dynamic light(spotlight) to an object at runtime.. how to?

Author
Message
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Sep 2019 17:26
is there a way in gg to add a light to a dynamc object generated at runtime?? I have my flashlight rig and want to have the light to be managed direclty from the flashlight with a spotlight and dnt use the integrate flashlight at all

problem is that hands+flashlight rig is a weapon and its generated(equiped only when player pickup the flashlight)

any hint
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Sep 2019 17:31
Quote: "any hint"

yes
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Sep 2019 23:20 Edited at: 19th Sep 2019 23:23
Quote: "yes"


thanks smallg but i tihnk is out of my current lua skills
since i cannot figured how to attach a spotlight to my flashlight at runtime

bt w how did you manage to attach the spotlight t othe enemy soldier ?
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 23rd Sep 2019 14:39
tried but cannot managed.. how can i do if the obejct to attack the light spawn on runtime like a flashlight taht light need to be enable only when flashlight weapon is selected and only when player start it?
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-11-23 22:03:57
Your offset time is: 2024-11-23 22:03:57