Hi,
i have a problem with my weapon code. I'm coding a HK mark 23 socom with a sound suppressor. I would like to enable the player to add it or not. It's pretty easy to code in general, but there is something i don't understand...
I wanted to make something like that : when you have the module, there is no muzzle flash, nor flash light when you shot. Ands when you don't have the module, there is. But, i can't delete this ****ing flashlight. I don't understand since there is nothing in my code which add a such light.
For other weapon, i've created a light called ATFireLight which is spawned when firing. But i've overidden the tracefire function in order not to spawn it. But it don't works.
Do you know if Unreal spawn a light when a weapon shot ? I think not since i had to make this light before...
Any idea ?
i have a problem with my weapon code. I'm coding a HK mark 23 socom with a sound suppressor. I would like to enable the player to add it or not. It's pretty easy to code in general, but there is something i don't understand...
I wanted to make something like that : when you have the module, there is no muzzle flash, nor flash light when you shot. Ands when you don't have the module, there is. But, i can't delete this ****ing flashlight. I don't understand since there is nothing in my code which add a such light.
For other weapon, i've created a light called ATFireLight which is spawned when firing. But i've overidden the tracefire function in order not to spawn it. But it don't works.
Do you know if Unreal spawn a light when a weapon shot ? I think not since i had to make this light before...
Any idea ?