OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PureMassacre on 14 Feb 2004, 23:36:59

Title: Outfitting a team with BAS patches
Post by: PureMassacre on 14 Feb 2004, 23:36:59
Hey,

In the init of the player i want to add a command, that will give each member of the group (group1) the 101st (sub) arm patch. Note: The soldiers are the 'BAS Soldiers' (The rangers with patchs). Please help!

I tried the following code with no success:

Code: [Select]
"_x setObjectTexture [0,"\BAS_weap\unitpatch\101stsub.paa"]" foreach units group1
Thanks in advance...
Title: Re:Outfitting a team with BAS patches
Post by: The-Architect on 15 Feb 2004, 01:35:00
When I did it I put the code into each in turn, and I made my own. They were in .jpg format if I remember correctly.
It says in the readme for the BAS Delta/Rangers, just read it again word for word.
Title: Re:Outfitting a team with BAS patches
Post by: m21man on 15 Feb 2004, 01:45:38
OFP can be screwy with brackets and quotation marks. Try this:
Code: [Select]
"_x setObjectTexture [0,{\BAS_weap\unitpatch\101stsub.paa}]" foreach units group1
Title: Re:Outfitting a team with BAS patches
Post by: PureMassacre on 15 Feb 2004, 02:24:23
Thanks mate, it works now