OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: MGeo on 11 Mar 2004, 13:37:34

Title: AI?
Post by: MGeo on 11 Mar 2004, 13:37:34
Is it possible to set names for the AI in multiplayer?
You know when you kill an AI in a deathmacvh instead nothing to write it will write
You killed *AINAME*
or
You was killed by *AINAME*

I don't really rememebr how it was writing but i remember it was something like that.

Is it possible to do this?

And also to make the AI to chat.

For example if he is kileld he will say something like
*Go to hell*
or
*Argh next time you will regret it.*
Or also if you kill someone to say like:
*Runned by the train.*
or
*Better get some practice n00b.*

Is it possible to do this?
Title: Re:AI?
Post by: Terox on 14 Mar 2004, 10:03:42
there's a setidentity command in the comref

units init field entry would be

Unitname setidentity "Cpl_Blimp"
or failing that it could be
Unitname setidentity "Cpl Blimp"

and the code that needs entering in the Description.EXT would be
Code: [Select]
class CfgIdentities
   {

   class Cpl_Blimp
      {
      name = "Cpl Blimp";
      face = "Custom";
      glasses = "sunglasses";
      speaker = "Adam";
      pitch = 1.00;
      };
   };


Thats how the syntax would work for the setidentity command, however i have never tried it
Title: Re:AI?
Post by: Tactician on 14 Mar 2004, 10:11:12
A BIS deathmatch that came with Resistance, Flagfight Handguns on Nogova, uses identities like that.  DePBO and have a look.
Title: Re:AI?
Post by: MGeo on 14 Mar 2004, 11:15:59
Thnx maybe i will use that.