Hello,
I'm adding a muzzle flash model to be created when the gun fires. The flash is supposed to come from a specified vertex which I believe is in the code correctly.
Here is the code:
vec_for_vertex (temp.x, plyr_machinegun, 32);
ent_create (mflash_mgun_mdl, temp.x, muzzle_flash);
However, when I run the engine, there is this error message:
'temp' undeclared identifier
< vec_for_vertex (temp.x, plyr_machinegun, 32); >
Can anyone see what is causing the problem?