Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Changing a unit's model mid mission?  (Read 2257 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: