OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Donnervogel on 25 Aug 2002, 12:49:19

Title: setface script
Post by: Donnervogel on 25 Aug 2002, 12:49:19
I wanted to make a "setface" script to set random faces to custom units like Viet Cong units from the NAM Pack.
But I can't find a way arround the foreach function wich doesn't work because the setface command uses " chars.
This is a problem that I encounter very often. Is there another method for array walktroughs?
Title: Re:setface script
Post by: Vyper on 25 Aug 2002, 15:03:37
How exactly do you put faces on the nam pack guys anyway?

I tried putting the face picture boards in the mission folder and in the init field typing -   This setface "SEBnva4"  - or whatever...but it didn't work?

Vyper
Title: Re:setface script
Post by: Donnervogel on 25 Aug 2002, 15:30:29
you don't need to put them in the mission folder. Just install the NAM Pack correctly and then the VC (or NVA) faces are sebvcface1-10
put
this setface "sebvcface1"
or
this setface "sebvcface2"
...

in the init line of a VC or NVA unit.

But it's time consuming to do it that way. Thats the reason why I wanted to make a script for it.
Title: Re:setface script
Post by: Vyper on 25 Aug 2002, 15:45:37
nice one, and the US faces work the same way?

this setface "sebwhateveritscalledjobbies"

perfec, thanks a lot!

Vyper
Title: Re:setface script
Post by: occam on 09 Sep 2002, 15:22:04


[attachment deleted by admin]