Jump to content
Sign in to follow this  
Matthijs

Weaponitemslot

Recommended Posts

I'm having several minor issues with the config of a static machinegun I'm creating.

1) Item not showing up in inventory: I created a weapon called "ammobox", and defined it for inventory as:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weaponType = 3 * WeaponSlotItem;

The item is not showing up. Is my config the problem, or is it OFP that does not allow weapons as weaponitems?

2) The model has a gunner proxy (obviously). When the gunner gets out, a gunner's geometry seems to remain on the model, creating an invisible obstacle behind the weapon. Is this an OFP issue, or something I'm doing wrong with either my model or config?

3) When using "createvehicle" to place the machinegun, there is a considerable delay before it can be used. Is this an OFP thing, or my config?

Hope someone has some answers for me.

smile_o.gif

Share this post


Link to post
Share on other sites

1) I think you have weapontype and magazine type mixed up. eg it should be something like this

weaponType = WeaponSlotSecondary;

magazineType = 2 * WeaponSlotItem;

in addition, it gets a bit more complicated in that you should specify the weapon scope and magazine scope as well. ie if it is code for a magazine then you should use

scopeMagazine = public;

if it is code for a weapon then add

scopeWeapon = public;

2) proxy might not be defined properly or modelled correctly

3) dunno about createvehicle, might be a delay in loading up the object for the first time. Maybe try creating one at the start of the mission in a out of the way spot just to get it loaded into the game first, then try your code.

SelectThis

Share this post


Link to post
Share on other sites
1) I think you have weapontype and magazine type mixed up. eg it should be something like this

weaponType = WeaponSlotSecondary;

magazineType = 2 * WeaponSlotItem;

in addition, it gets a bit more complicated in that you should specify the weapon scope and magazine scope as well. ie if it is code for a magazine then you should use

scopeMagazine = public;

if it is code for a weapon then add

scopeWeapon = public;

Hi,

Thanks for the reply.

1) Actually, I want to create a weapon that sits in a magazine slot... but I guess it's just not possible.

Thanks for the rest of your replies.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×