Jump to content
Sign in to follow this  
GIAT industries

Change the Identity during the game??

Recommended Posts

Hi everyone!

I've got a question... Is it possible to change the identity (ie:SetIdentity "John_doe") to a different one during the game?

When the player take a backpack (US Bag) it change the SetIdentity to a different one during the game)...

Thanx...

---------- Post added at 10:03 PM ---------- Previous post was at 08:40 PM ----------

Anyone?

Share this post


Link to post
Share on other sites

Hi columdrum!

Can you explain it? I'm a still a beginner....

So I add Trigger:

On Condition

I copy this

(typeOf (unitBackpack unit1)) == "Backpack_name" (Ie US back pack)

In Activation I use the Setidentity... (Ie a different the Second Identity)

I create a Soldier, under name I changed to "unit1"

But When I pick up the backpack, it does work change to the Second Identity...

Share this post


Link to post
Share on other sites

You can see the names of the classnames for the backpacks here:

http://community.bistudio.com/wiki/ArmA_2_OA:_Backpacks

And setidentity its well explained on the wiki, you could at least try to read it ¬¬.

For example with the trigger:

Condition:

(typeOf (unitBackpack unit1)) == "US_UAV_Pack_EP1"

On act:

unit1 setIdentity "John_Doe";

The unit should be called unit1, the backpack that changes the identity its the "UAV terminal bag"(something like that xD, its the last one on my editor, for any other just change the classname on the condition).

You also need to define the john_doe identity on your description.ext, thats already explained on the wiki(read hardrock comment)

http://community.bistudio.com/wiki/setIdentity

Share this post


Link to post
Share on other sites

Hi columdrum!

It works! Thanx for all the explainations...

Ps: I know how to use the Setidentity, but when it comes "Condition" & "Activation", I always get thoses wrong...

Thanx again for your help!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×