Home   Help Search Login Register  

Author Topic: Changing a unit's model mid mission?  (Read 1225 times)

0 Members and 1 Guest are viewing this topic.

Offline kevb0

  • Members
  • *
  • I'm a llama!
Changing a unit's model mid mission?
« on: 22 Feb 2008, 07:40:22 »
Hey guys.

I've recently attempted making a mission where a unit changing it's model is needed. For example, A civilian4 model changing to a civilian19 model, dynamically. In this case, SetIdentity wouldn't work.

The only way I could do this, is by this small script.

Code: [Select]
_oldplayer = player;

_newguy = group player createUnit ["Civilian5", getpos player, [], 0, "FORM"];

addSwitchableUnit _newguy;
selectPlayer _newguy;
deletevehicle _oldplayer;

Now this script works fine, but he retains his AI face,AI name and AI XML. If I were to type in globalchat, it would read something like "Alfanso Benzina: Blahblah" instead of "Kevb0: BlooBloo"

I've tried camcreate, createvehicle, createvehiclelocal, and all of that jazz. Nothing seems to work.

Can anyone think of anything to help me out?

Thanks in advance.

Offline Tajin

  • Members
  • *
Re: Changing a unit's model mid mission?
« Reply #1 on: 22 Feb 2008, 20:45:16 »
Havent found a solution for this either. I don't think it can be done.  :confused:


 :dunno: