Home   Help Search Login Register  

Author Topic: How can I get setidentity to work with this guy?  (Read 782 times)

0 Members and 1 Guest are viewing this topic.

toadeater

  • Guest
How can I get setidentity to work with this guy?
« on: 15 Dec 2002, 03:08:43 »
I'm using the DWRgeneral add-on
http://ofp.gamezone.cz/unofaddons/Admiral.zip
in my mission and would like to rename it using setIdentity. This add-on seems to override the setIdentity command and continues to be shown as "DWRgeneral" if you move the crosshair over it. Can this be fixed? Or am I stuck with this name?

PENNYWISE

  • Guest
Re:How can I get setidentity to work with this guy?
« Reply #1 on: 15 Dec 2002, 13:28:49 »
Hiya :)

Well...hmm, dont you have to set the identity in the description.ext Then put the line: This setIdentity "identity"
in the init or on act. or whatever? or maybe you've already done this :)

toadeater

  • Guest
Re:How can I get setidentity to work with this guy?
« Reply #2 on: 16 Dec 2002, 01:02:13 »
Yes, that's what I did. It doesn't work with this add-on for some reason. Is it not possible to use setidentity with add-on units or something?

PENNYWISE

  • Guest
Re:How can I get setidentity to work with this guy?
« Reply #3 on: 16 Dec 2002, 13:39:28 »
Never thought about that but i think it should be available to set identity with addon units too..

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:How can I get setidentity to work with this guy?
« Reply #4 on: 17 Dec 2002, 00:18:52 »
Hmm... I don't see that it should make any difference...

I think I've seen something similar recently... (possibly in the official forums?)

Anyway, check that your:

unit setidentity "identity"

command actually relates to the class bit of your description.ext
eg.

Units init

this setidentity "Bob"

Description.ext
Code: [Select]
class CfgIdentities
{
     class Bob
   {
         name = "Sid";
      face = "Face1";
      glasses = "none";
      speaker = "Greg";
      pitch = 1.00;
   };
};

So using that example, make sure your identity is set to "Bob" and not "Sid" ;)

toadeater

  • Guest
Re:How can I get setidentity to work with this guy?
« Reply #5 on: 17 Dec 2002, 06:49:51 »
That's what I have:

Code: [Select]
class CfgIdentities
{
    class Wehrkopf
    {
        name="Colonel Wehrkopf";
        face="face10";
        glasses="none";
        speaker="Dan";
        pitch=1;
    };
    class Player
    {
        name="Roarke";
        face="face12";
        glasses="none";
        speaker="Dan";
        pitch=1;
    };
};

In the unit's init line I have:

Code: [Select]
position[]={5153.614746,31.139999,10424.064453};
               azimut=517.306030;
               special="NONE";
               id=18;
               side="WEST";
               vehicle="DWRgeneral";
               leader=1;
               rank="COLONEL";
               skill=1.000000;
               text="un1";
               init="this setIdentity ""Wehrkopf""

The Player class/identity worked fine, but not the Wehrkopf one.

I posted this to the official forums too, maybe that's what you saw there? Someone there said that they couldn't get it to work with this add-on either and it had something to do with using Guba's "script"?