Jump to content
Sign in to follow this  
AaChilders

Setting the name and team of an AI unit

Recommended Posts

I am trying to change the name of an AI in the command bar but can't get it to work. I am trying every iteration of

this_setName_name

listed here https://community.bistudio.com/wiki/setName in the units init field it will allow me to but it doesn't change the name in MP or SP. I'm stuck, can't figure it out. In the same vein I am trying to set the AI units team color (blue, red, green) as shown here https://community.bistudio.com/wiki/assignTeam with

this_assignTeam_color

that doesn't show up either in the command bar. I know I am hosing it up somewhere, but to green to figure it out I guess. If these are possible would someone be so kind and explain it like I'm a two year old. Thanks.

Share this post


Link to post
Share on other sites

Seems like you're writng command wrong. Try

this setName ["Ben Kerry","Ben","Kerry"];

this setName ["Ben Kerry","Ben","Kerry"];

For multiplayer probably something like this: 

 

[this, "Ben Kerry","Ben","Kerry"] remoteExec ["setName", 0, this]

 

Share this post


Link to post
Share on other sites
On 2/16/2018 at 6:54 AM, Redrumovy said:

Seems like you're writng command wrong. Try

this setName ["Ben Kerry","Ben","Kerry"];


this setName ["Ben Kerry","Ben","Kerry"];

For multiplayer probably something like this: 

 


[this, "Ben Kerry","Ben","Kerry"] remoteExec ["setName", 0, this]

 

 

 

Threads are viewed by many, many interested people. It sure would be thoughtful AND helpful to come back here and update people who might be following an issue as to what worked or what didn't work. This courtesy is a basic ARMA concept of "community" AND "teamsmanship" that makes ARMA so uniquely special, both in-game and out.  Cheers.

Edited by ROGER_BALL
Clarity and grammar
  • Like 1

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  

×