OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: kevb0 on 22 Feb 2008, 07:40:22

Title: Changing a unit's model mid mission?
Post by: kevb0 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.
Title: Re: Changing a unit's model mid mission?
Post by: Tajin on 22 Feb 2008, 20:45:16
Havent found a solution for this either. I don't think it can be done.  :confused:


 :dunno: