OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 on 18 Sep 2009, 15:28:29

Title: Small object uses?
Post by: stephen271276 on 18 Sep 2009, 15:28:29
Hi the small objects in the editor ie Photos, dogtags etc... Is there a way to pick these up? Lets say in a mission where your mission is to retrieve them?
Title: Re: Small object uses?
Post by: i0n0s on 18 Sep 2009, 18:08:50
Create a weaponholder and add it to it.
Be aware that a player can only carry one of each item.
Title: Re: Small object uses?
Post by: stephen271276 on 18 Sep 2009, 18:33:18
How do you add it to a crate where are the class names? Thanks in advance
Title: Re: Small object uses?
Post by: i0n0s on 18 Sep 2009, 21:49:36
Took a look at the COMREF (http://www.ofpec.com/COMREF/index.php?action=read&id=210)?
Title: Re: Small object uses?
Post by: stephen271276 on 18 Sep 2009, 22:12:44
I can get it to work if im adding to a unit but cant seem to place any of them in a crate ????? aaaaarrrgh
Title: Re: Small object uses?
Post by: Blacknite on 18 Sep 2009, 23:02:09
try this:
this addweaponcargo ["EvDogTags", 1]

Just put that in the init line of your ammo crate.  And that should give you dogtags, note that the number "1" is the amount.
Title: Re: Small object uses?
Post by: stephen271276 on 18 Sep 2009, 23:34:47
Wicked thanks man.... now without sounding like a right tit I want some sort of text or hint to appear on screen when the player picks them up??? any ideas?
Title: Re: Small object uses?
Post by: Blacknite on 19 Sep 2009, 02:07:28
well try the addaction command and script it.