OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dirtman on 27 May 2003, 21:32:39
-
First of all let me say I don't know jack about scripting. Now would it be possible to make a script that would at random select faces from a file you added to the mission. Such as "East" select random faces. That way when building a mission such as in NAM, you would only have to place your faces in a file and add a code to the init. file. Then when you start the mission the init. file would choose random faces from the file and assign them to only the East side.
;)
-
Depends, are you speaking of the player or for other units? is it for Multiplayer or Single Player?
-
Well if it was going to be done I guess it should be Mutli-player to cover all. As for who would use the faces, that would depend on the side you play on. If you are a US platoon that is attacking VC forces, then you would want to set it for EAST and load only VC faces in the folder for that mission. I don't think it would matter about which side used it. You would just need to edit the script to EAST, WEST, CIVI or RES. and then load the faces you want it to use into the folder before saving it. At least I would think so.
-
sorry about the delay...
use the setIdentity command
you can make custom identities (includes faces,voice pitch, name, etc..) in the description.ext file and make them choose them at random
the best way is to name the identities WEST_ID1,WEST_ID2,WEST_ID3, etc....and call them from a "random" script.