OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Lean Bear on 22 Feb 2005, 21:47:17

Title: Adding light to a weapon
Post by: Lean Bear on 22 Feb 2005, 21:47:17
OK, I want to put a beam of light on the end of a weapon I made but I'm not entirely sure how to do it.

I've got all the class Smoke and class Light stuff down:



Class CfgWeapons

     class Default {};
     etc. etc.
     class MyWeapon: EtcEtc
     {
           ~normal weapon config stuff~
           
            class Smoke
            {
             } <- There's no ";" here on purpose - would that affect the final result?
     
             class Light
              {
               };
    };
};


Something like that anyway.

Is this the right way to do it? I just did it like how I would if I was making it as a (class) building.
Title: Re:Adding light to a weapon
Post by: oyman on 22 Feb 2005, 22:01:46
you cant add lights to a weapon, you add them to the soldier ;)
Title: Re:Adding light to a weapon
Post by: Lean Bear on 22 Feb 2005, 22:22:09
Awww :-\

Then how can I get a light on the end of my weapon? There's always some way of faking it or tricking OFP into thinking something different.
Title: Re:Adding light to a weapon
Post by: oyman on 23 Feb 2005, 00:05:46
you have to add the points used to make the light in the memory lod, then tie those up with the gun proxy
Title: Re:Adding light to a weapon
Post by: Lean Bear on 23 Feb 2005, 18:17:05
Does 1 point make light or what? Isn't it just like a plane I can use (like in normal lights)?

Do I do this in the memory lod of the weapon or somehting else?

Also, how do I tie those up with the gun proxy?
Title: Re:Adding light to a weapon
Post by: BoNeCoLLeCToR on 23 Feb 2005, 22:58:50
Does 1 point make light or what? Isn't it just like a plane I can use (like in normal lights)?

Do I do this in the memory lod of the weapon or somehting else?

Also, how do I tie those up with the gun proxy?
In the memory lod of the soldier class not gun cause that wont work ;)
Also the proxy of the gun again on the soldier unit ;)
Title: Re:Adding light to a weapon
Post by: Lean Bear on 24 Feb 2005, 19:04:16
hmm, I guess my last post didn't work.

The jist of it was:

Is there some tut I can look at which goes over this in more detail?
Title: Re:Adding light to a weapon
Post by: Lean Bear on 02 Mar 2005, 19:05:10
OK, if not then could one of you two give me a few pointers on how to do it?

Or at least how I can start. :)