Forum Jump :

Author Message

Morts  



Posts: 66
Rank:


Level: Member

Country: en
Location:
Occupation: Morts
Age:
In-game name:

 
#1 Posted at 2009-03-28 12:05        
     
hi guys im making a mission and i was just wondering, how do i place a specific item e.g an ACE Parachute pack in a vehcile e.g a plane.

if anyone knows it would be much appreciated

Thanks, Morts

<a href="http://www.3para-gu.co.uk?do=home&fromid="><img src="http:/www.3para-gu.co.uk" width="468" height="60" alt="Forumlinks" border="0" /></a>

Author Message

Myke  

Mc Script


Posts: 1034
Rank:


Level: Member

Country: ch
Location: St. Gallen
Occupation: Armaholic addon tester
Age: 49
In-game name: Myke

 
#2 Posted at 2009-03-28 13:34        
     
Depends on if it is defined as weapon or as magazine:

addWeaponCargo
addMagazineCargo


Advertisement


Author Message

dcb  



Posts: 319
Rank:


Level: Member

Country: us
Location: Connecticut
Occupation: Volunteer Firefighter/Waiter at a friendly italian place :o
Age: 27
In-game name:

 
#3 Posted at 2009-03-28 13:35        
     
Type this into the init of the vehicle inquestioned.


clearWeaponCargo this; clearMagazineCargo this; this addWeaponCargo ["ACE_Parachute"_1];


Where "1" is the number of parachutes, and "ACE_Parachute" is the classname for the item you want inside the selected vehicle, by adding "clearWeaponCargo this; clearMagazineCargo this;" you are simply removing all the items from the vehicle, if you do not want that, just put:

this addWeaponCargo ["ACE_Parachute"_1];

dcb

Author Message

Morts  



Posts: 66
Rank:


Level: Member

Country: en
Location:
Occupation: Morts
Age:
In-game name:

 
#4 Posted at 2009-03-28 20:06        
     
thanks for the help but it doesnt seem to be working

are the parachutes classed as a weapon, also i tried it without the inverted commas and nothing shows up :s

any reason or is it just not working?

Thanks

<a href="http://www.3para-gu.co.uk?do=home&fromid="><img src="http:/www.3para-gu.co.uk" width="468" height="60" alt="Forumlinks" border="0" /></a>

Author Message

dcb  



Posts: 319
Rank:


Level: Member

Country: us
Location: Connecticut
Occupation: Volunteer Firefighter/Waiter at a friendly italian place :o
Age: 27
In-game name:

 
#5 Posted at 2009-03-28 20:21        
     
I might have screwed up on the technical classname.

Try others:

"ACE_ParachutePack"
"ACE_Para"

etc


Try it as a Magazine.

dcb

Author Message

Myke  

Mc Script


Posts: 1034
Rank:


Level: Member

Country: ch
Location: St. Gallen
Occupation: Armaholic addon tester
Age: 49
In-game name: Myke

 
#6 Posted at 2009-03-28 20:36        
     
erm....dcb, check your code. You've placed a underline where it needs a commata.

this addWeaponCargo ["ACE_Parachute",1];

:EDITH:
It probably could have helped by clicking the links i gave above and comparing it with the example code of dcb. C'mon guys, start to use your brain, helps to save a lot of (your) time.


Author Message

Morts  



Posts: 66
Rank:


Level: Member

Country: en
Location:
Occupation: Morts
Age:
In-game name:

 
#7 Posted at 2009-03-29 12:19        
     
i did try the comma but not that way round, ill try it, thanks

<a href="http://www.3para-gu.co.uk?do=home&fromid="><img src="http:/www.3para-gu.co.uk" width="468" height="60" alt="Forumlinks" border="0" /></a>