Game Development Community

Flashlight

by CdnGater · in Torque Game Engine Advanced · 07/09/2007 (8:02 pm) · 3 replies

I was wondering if anyone has implemented a Flashlight in TGEA? I found the resource for the TGE one, though it looks like it's probably broken.

I'm looking for the typical, hold a flashlight object and turn it on to shine around the room implementation. If anyone has anything they can share that would be great, otherwise can I get some direction on how to implement.

Edit: Just thinking about it, even a working version of the TGE for TGEA would be ok.

Thanks

#1
07/10/2007 (9:33 am)
Create a little DTS of the flashlight and attach a directional light to it.
#2
07/10/2007 (10:01 am)
Attach a directional light? Sorry, I'm not up on the lighting system yet, been reading it trying to understand.

So basicaly

Create a Directional Light datablock

Create the light from the datablock

then attach the light to the flashlight

and then lastly, mount the flashlight to the hand mount point of the character?
#3
07/10/2007 (10:56 am)
Yup, sounds good to me.