OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ed42566 on 02 Mar 2005, 00:10:18

Title: How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: ed42566 on 02 Mar 2005, 00:10:18
Hi,All

I'm very new here on this forum and people tolt me to look here for un answer on
my question. They say. If they' dont no it nobody no's.
 
My Question is:  
How can I change the weapons out fit on un a singel Unit? in MFCTI.
Or an couple of units.
 
Example:  
I want to give an unit un binocular, un gun, and un bazooka, plus some grenade's  
Again It is just un Example to see how this go's in MFCTI.
 
What do i have to do, To get this done in MFCTI (or better said) how do  
this go's in MFCTI? ( how it works)  
 
I find the Main\Stats bit and the loadouts bit.  
But what I dont no, Is how do I specified the created unit in MFCTI?  
So how do I make the switch to my created Unit with the waepons of my  
choosing?  
how can I create this In MFCTI  
 
In Advance very much Thanks for it and Greetings ed42566 :)
 
And I hoop that some of you can help me out with it.
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: MOC_XIII on 02 Mar 2005, 00:33:28
In his init after the Exec and stuff, put
removeallweapons this
and put
this addweapon "weaponname"
this addmagazine "weaponname"
and do a few magazines
you will have to reload at start though  :-\
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: sharkyjoe on 02 Mar 2005, 00:39:22
I'm not sure what "MFCCTI" is excactly but in edit mode you use "reference Guide"/commands- found in the Editors Depot. Now if its an add-on just down Load the add-on and open it up and Read the "READ ME" file and do as it says.

Having Said the above, Make sure your in Advance Mode above weather and time. Put Your Guy on map, and use some commands in the Intial. Field. below the Veh. Lock and Name.

Intial: this addweapon "binocular"; this addmagazine "handgrenade"
It's inportant to use Quatation marks and the( ; colon symbol )to separte.

Also you can name your guy in name field: Cap1 and use his name in place of "this" like: Cap1 addweapon "M16". This make things Easier in the long run. Hope this helps out.
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: Planck on 02 Mar 2005, 04:22:39
Quote
you will have to reload at start though

If you add a magazine for the weapon before adding the weapon, the weapon will be loaded and you won't need to load it at startup.


Planck
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: Dubieman on 02 Mar 2005, 05:17:58
You may want to find the script that controls what players get upon startup and when they respawn. Unless you're looking to change this through a unit's init line. :P Then in the script you'd prolly change the addweapon "such and such" to addweapon "ed42566 's awesome weapon" or whatever you want so you start with different weapons. Hope that helps... ;)
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: ed42566 on 03 Mar 2005, 21:20:58
Hi, All  :)

Thank you for the reply's on it.
The last one is indeed very much helping in the right direction.
Thank you ( GuiltyRoachKillar )
But  the next Question is How do i get this done on an
Barracks unit that you can buy from the Barracks.

In the mean time I'm bizzy with traying out something.
You no ( The Yik/Yacking round on it.)

I have to find out how to put this in. In MFCTI.

Well everybody thanks and i do hoop that there comes more on it.

Greetings ed42566 :P
Title: Re:How can I change the weapons out fit on un a singel Unit? in MFCTI.
Post by: Dubieman on 03 Mar 2005, 21:58:48
I haven't looked at a MFCTI unPBOed in a looong time, but I suspect it is controlled by another script or trigger that uses the addaction command or activates a dialog... :P