Home   Help Search Login Register  

Author Topic: Adding light to a weapon  (Read 1769 times)

0 Members and 1 Guest are viewing this topic.

Lean Bear

  • Guest
Adding light to a weapon
« 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.

Offline oyman

  • Members
  • *
  • king of pings
Re:Adding light to a weapon
« Reply #1 on: 22 Feb 2005, 22:01:46 »
you cant add lights to a weapon, you add them to the soldier ;)

Lean Bear

  • Guest
Re:Adding light to a weapon
« Reply #2 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.

Offline oyman

  • Members
  • *
  • king of pings
Re:Adding light to a weapon
« Reply #3 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

Lean Bear

  • Guest
Re:Adding light to a weapon
« Reply #4 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?

BoNeCoLLeCToR

  • Guest
Re:Adding light to a weapon
« Reply #5 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 ;)

Lean Bear

  • Guest
Re:Adding light to a weapon
« Reply #6 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?

Lean Bear

  • Guest
Re:Adding light to a weapon
« Reply #7 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. :)