Flash of light around player when weapon fires
by Jesse P · in Torque Game Engine · 08/01/2008 (1:57 pm) · 7 replies
I would like to add a quick burst of light near the player every time he fires the weapon. I couldn't find any resources on the forum about this and was wondering if anyone has any suggestions. Thanks
#2
In your ShapeBaseImage Datablock should do the trick.
08/01/2008 (2:15 pm)
lightType = WeaponFireLight; lightRadius = 10; lightTime = 50; // Time in ms lightColor = "0.9 0.9 0.8";
In your ShapeBaseImage Datablock should do the trick.
#3
08/01/2008 (2:18 pm)
There you go, wow thats a simple code, its nice to see that its already coded in the engine.
#4
08/01/2008 (2:30 pm)
It even casts shadows in 1.5.*
#5
08/01/2008 (3:03 pm)
Works perfectly! Outstanding. Thanks!
#6
03/27/2009 (2:11 pm)
Is this code supposed to go in the weapon or in the datablock that defines the ShapeBaseImage?
#7
03/27/2009 (2:19 pm)
The datablock that defines the ShapeBaseImage("Weapon name Image here").
Torque 3D Owner Edward