Page 1 of 1

Adding a flashlight to a weapon?

Posted: Sat May 18, 2013 2:17 pm
by Luke
Hey,

here I'm again. And I've a question if it's possible to create a flashlight on a weapon or simply attach a light to a weapon.

So far, I've already tried it on the easiest way I could imagine. I simply loaded a rifle (for the test the CIS blaster rifle) with ZETools into XSI and added a new hard point for the light called hp_flashlight. The I exported it, went into the weapon's ODF file and this lines like you would do it if you are attaching a light to a hard Point of a prop:

Code: Select all

AttachOdf = "flashlight"
AttachToHardPoint = "hp_flashlight"
I also created a light ODF called "flashlight". Then I added this rifle to my B1-Battle Droid, munged Common and the cis-side.
Then I started the game a loaded my map and the rifle was there, but no light was shining on the place where it should be.

So, my question is, if it's after all possible to attach a light to a weapon or not. (Or is it just a munge issue caused of the same way my new override texture for the droid sniper isn't showing up?)

Re: Adding a flashlight to a weapon?

Posted: Sat May 18, 2013 3:17 pm
by Marth8880
You can't really attach a flashlight to a weapon because ODFs can only be attached to the 'prop' class label (see here), but you can sort of create a flashlight weapon.

Refer to these threads:
http://www.gametoast.com/forums/viewtop ... 27&t=18788
http://www.gametoast.com/forums/viewtop ... 27&t=17878