OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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
-
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.
-
nice one, and the US faces work the same way?
this setface "sebwhateveritscalledjobbies"
perfec, thanks a lot!
Vyper
-
[attachment deleted by admin]