Jump to content
Sign in to follow this  
Ink.

Can I set unit races?

Recommended Posts

I'm trying to make a group of units with specific races. Is there anyway I can make it so a specific unit will spawn as a specific race? For ex: Making a unit always spawn as a black male?

In addition: Is there anywhere where I can find specifically the names of items so I can modify starting items?

Share this post


Link to post
Share on other sites
I'm trying to make a group of units with specific races. Is there anyway I can make it so a specific unit will spawn as a specific race? For ex: Making a unit always spawn as a black male?

In addition: Is there anywhere where I can find specifically the names of items so I can modify starting items?

This is the answer you're looking for. (Well a step in the right direction)

setIdentity

Feel free to ask for further help.

Share this post


Link to post
Share on other sites
This is the answer you're looking for. (Well a step in the right direction)

setIdentity

Feel free to ask for further help.

Awesome. Will be working with this as necessary.

Question however; how can I select a unit? For example, if I'm playing as my character (squad leader) but I want unit 2 to have a specific name. What would I use to identify soldier 2? I mean in the execute box of the debug console while I'm ingame? I tried _soldier2, but that didn't work. Unless setName just cant be used via debug console.. player setName "Name" worked so I know it can be used. I just don't think I know what to use to identify which person for the command. I can always just player setName and switch to characters to do so, just wondered if I could find another way.

Edited by Ink.

Share this post


Link to post
Share on other sites

If he is in your group use

(group player select 1) setIdentity ????

Or you can do it to whichever unit you are looking at via

cursorTarget setIdentity ????

Via the init area of the unit in the editor

 this setIdentity ????

Share this post


Link to post
Share on other sites

Ok, so you see from setIdentity don't need to use the description.ext to define identities.

Linked to on the page above, (and maybe hard to spot) are these commands:-

https://community.bistudio.com/wiki/setFace

https://community.bistudio.com/wiki/setName

https://community.bistudio.com/wiki/setNameSound

https://community.bistudio.com/wiki/setSpeaker

https://community.bistudio.com/wiki/setPitch

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  

×