by Kzer-Za » Tue Feb 12, 2019 11:14 am
And are these lights applied to HUD weapons? I'm trying to make a weapon emit a light when Altfire is held for some time, but I don't see the light, though the same light, when it's attached to its ammo I do see. Here's the light:
Code: Select all
pointlight GOLDWANDCRYSTAL1
{
color 0.7 0.5 0.0
size 26
offset 0 26 0
}
Here's the hold state:
Code: Select all
AltHold:
GWND A 1 Light("GOLDWANDCRYSTAL1")
GWND A 1 Light("GOLDWANDCRYSTAL1") A_Refire("AltHold")
GWND A 1 Offset(0, 33) // I haven't made the shot itself yet
Goto Ready
The idea is that the weapon stays emitting the light while the altfire is held, and the shot is made when it's released. But I don't see the light, though it's noticeable when coming from ammo.
And are these lights applied to HUD weapons? I'm trying to make a weapon emit a light when Altfire is held for some time, but I don't see the light, though the same light, when it's attached to its ammo I do see. Here's the light:
[code]
pointlight GOLDWANDCRYSTAL1
{
color 0.7 0.5 0.0
size 26
offset 0 26 0
}
[/code]
Here's the hold state:
[code]
AltHold:
GWND A 1 Light("GOLDWANDCRYSTAL1")
GWND A 1 Light("GOLDWANDCRYSTAL1") A_Refire("AltHold")
GWND A 1 Offset(0, 33) // I haven't made the shot itself yet
Goto Ready
[/code]
The idea is that the weapon stays emitting the light while the altfire is held, and the shot is made when it's released. But I don't see the light, though it's noticeable when coming from ammo.