Home   Help Search Login Register  

Author Topic: Script to select faces  (Read 541 times)

0 Members and 1 Guest are viewing this topic.

Dirtman

  • Guest
Script to select faces
« 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.

 ;)

Offline CrashDome

  • Members
  • *
Re:Script to select faces
« Reply #1 on: 28 May 2003, 01:36:12 »
Depends, are you speaking of the player or for other units? is it for Multiplayer or Single Player?

Dirtman

  • Guest
Re:Script to select faces
« Reply #2 on: 28 May 2003, 20:56:06 »
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.
« Last Edit: 28 May 2003, 22:09:30 by Dirtman »

Offline CrashDome

  • Members
  • *
Re:Script to select faces
« Reply #3 on: 06 Jun 2003, 08:50:23 »
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.