Home   Help Search Login Register  

Author Topic: Changing A Player Unit In The Middle Of The Mission  (Read 1240 times)

0 Members and 1 Guest are viewing this topic.

Captain Wacky

  • Guest
Changing A Player Unit In The Middle Of The Mission
« on: 24 Sep 2002, 14:50:02 »
Is there any way to change the unit you play as, halfway through a mission? For example, if the Player was West Soldier, is there any way I could change him instantly into an East Soldier at a certain point in the mission? This would be really helpful for a new mission that I'm making at the moment. Thanks for any help in advance.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Changing A Player Unit In The Middle Of The Mission
« Reply #1 on: 24 Sep 2002, 15:11:33 »
In a word, no.  It cant be done.  If you are making a single player mission try doing part of it as a cutscene, or two missions lined as a campaign.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Changing A Player Unit In The Middle Of The Mission
« Reply #2 on: 24 Sep 2002, 17:15:28 »
The good news is that yes you can.    The bad news is that you can only do it in a multiplayer mission.   Which doesn't really matter as long as you make it clear that even though this is a mission for a single player, you have to play it in multiplayer mode.    There's no problem about playing a multiplayer mission with only one human.   The other bad news is that the transition is ..... inelegant.

Firstly, you need to fix your respawn options so that when the player dies he will respawn into a member of his group.   This is done in the description.ext file:  there are good tutorials in the Editors' Depot.

Next, create your player (west) and name him loon1

Now create a little group of east loons:   make the one you want your guy to spawn into playable, which means he gets a cute pink circle round him.    Call the group leader bob.

Lastly, all you really need is a trigger, fired as you will.    In the on activation field put

[loon1] join bob; loon1 setdammage 1

Voila, you are now an east soldier in an east group.    If you want him to lead a group you'll need to make him leave the one he is in and have his real group join him.    Look at the join command in the [un]official command ref in the Editors' Depot.     grpNull may come in handy too.

This is all going to be confusing for the player so make sure there is plenty of information available so he can understand what's going on.  

The transition itself is pretty messy so try covering it with a cutscene, though I have a feeling that the death/respawn camerawork might overpower the cutscene.   Blackout might work.    If all else fails claim in the briefing that you and your twin brother were seperated at birth and landed up on different sides, but your joint spirit will never die etc etc or some other nonsense.

But Icarus is right:  in SP mode there is no way.    
Plenty of reviewed ArmA missions for you to play

Captain Wacky

  • Guest
Re:Changing A Player Unit In The Middle Of The Mission
« Reply #3 on: 24 Sep 2002, 19:41:09 »
Damn. I needed it for SP. Thanks for the info, Macguba but it is supposed to be the Player dressing up as an East Soldier. So, I guess I'm stuck with making it a series of missions. Ah well, thanks anyway.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Changing A Player Unit In The Middle Of The Mission
« Reply #4 on: 24 Sep 2002, 19:42:49 »
When does this change of clothes happen?  If its right at the start before any actions taken place you can put it in a cutscene.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Changing A Player Unit In The Middle Of The Mission
« Reply #5 on: 25 Sep 2002, 17:54:02 »
I'd have to stick with [icky_uk©] on this one, matey!  :-\ :)

Yer best done with a cutscene!  :-*