As an examplo im using this code that is in the manual
Code:
entity shotgun_onscreen
{
type = <shotgun.mdl>;
layer = 2; // display above view entities with layer 1
flags = visible;// visible on screen from the start
view = CAMERA; // same camera parameters as the default view
albedo = 50; // gouraud shading from sun position
x = 100; // place 100 quants ahead of the view
y = -50; // 50 to the right
z = 0; // and center vertically
}
THE PROBLEM:I have a code that creates a smoke particle, and the initial position of this particle SHOULD be "shotgun_onscreen.x"
but it looks like the engine doesnt recon that shotgun_onscreen is an entity.
so if I put something like this
Code:
effect(starter_weaponfire,10,shotgun_onscreen.x,vector(0,0,20));
it creates the particle in the middle of the map, so it seems that shotgun_onscreen.x is equal to 0!
help?
thanks