Jump to content
Sign in to follow this  
Albert Schweitzer

placing magazine on the ground

Recommended Posts

I have just downloaded the roleplay objects. Unfortunately they are not listed in the ordinary addon list but instead the only way to get access to them is by opening an ammo crate in the mission itself. But I want to use one of the objects for a video, in other words I want to place the addon "money" on a table.

I tried out to put the crate on the ground, went into mission.sqs and replaced the ID with that of the money. But that didnt work.

I guess that is a very simple question for mission makers, but I am rather unskilled in this area. Any advise?

Share this post


Link to post
Share on other sites

If the objects normally appear in an ammo crate, they are likely either a class of weapon or magazine.

Try using createVehicle to create a "weaponHolder" object, then addWeaponCargo/addMagazineCargo the object. If it's a weapon, it will appear in place of the weaponHolder. If the object is a magazine class you'll probably only get the generic ammo pouch object.

If that fails, looking at the addon's config, it may include a static version of the objects.

Share this post


Link to post
Share on other sites

yes they are magazines. Everything is listed in the readme document.

Classnames etc.

Share this post


Link to post
Share on other sites

thank you, I will try it out.

As can be assumed I checked the readme, but from what is written there I could not extract the information on how to generally deal with ammo in scripts. The readme is about his addon and not a scripting guide for dummies, which unfortunately I am.     wink_o.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weaponholder= "Weaponholder" createVehicle (position gamelogic); weaponholder addMagazineCargo ["RPO_obj17",1]

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  

×