Jump to content
Sign in to follow this  
alleycat

Is there a way to change the model of a unit (human) during game?

Recommended Posts

Is there a way to change the model of a unit (human) during game? And does it have implications with friend/foe recognition? I am looking to have one player have a randomized appeareance.

Share this post


Link to post
Share on other sites

I was wanting something similar. I wanted to have a soldier to get a place and have him change clothes into civilian clothes and walk around the city.

I was planning on just having the civilian units ready and when i get there just team switch and use a script to delete the old unit once i switch to the civilian.

Since it's just me playing it team switching is simple, but if i get it good enough to release to public then i would need something better. And switching using teams switch you have control of which side you fight for or look like you fight for. Switch to a unit that has a group leader that is set to 0 probablity of presence.

Share this post


Link to post
Share on other sites

You can use selectPlayer unitname to change the player character (obviously need some setPos to replace on the spot)

Share this post


Link to post
Share on other sites

Due to possible player variables, actions, eventhandlers, respawn system, mission lists, server data and whatever, having to be managed for the other character, I think the general thought on this is that it is not recommended.

Share this post


Link to post
Share on other sites

Yea, it can be done and has been done before, an older version of CL:R had "Skin shops" where players could buy a new skin, the only problem was that they did not destroy the old unit, some missions like CL:R just placed them at spawn, but that started to make things confusing, some tried and noticed them running around the mission on their own as AI, the fix I think was to destroy the old unit. I sent you a PM with the script in question.

Edited by callihn

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  

×