Home   Help Search Login Register  

Author Topic: Add Playable Units when game is in-progress  (Read 1995 times)

0 Members and 1 Guest are viewing this topic.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Add Playable Units when game is in-progress
« on: 10 Aug 2006, 19:08:16 »
Getting back to OFP after a year, and still find it rocks!

I have a prisoner rescue coop mission where the rescue team is Playable at start of game, but prisoners are not.  Once rescued, I would like the prisoners to become playable members of the squad.

I know how to make the prisoners join the squad, but don't know how to dynamically make them playable.  I don't want them playable to begin with, as I don't want players to choose the prisoners initially.

I'm pretty sure I saw mission that had playable reinforcements...

Any ideas?

Thanks!

P.S.  Can't wait til ARMA!!!
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re: Add Playable Units when game is in-progress
« Reply #1 on: 10 Aug 2006, 21:53:34 »
A player will respawn into an AI, no matter if the AI is set to playable or not to begin with. And since there is no join in progress in OFP, the only way anyone can play as the prisoner is to respawn into him, so all you need to do is have group respawn and join the prisoner to the player(s) group.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Add Playable Units when game is in-progress
« Reply #2 on: 10 Aug 2006, 22:17:47 »
Thanks, Garcia.  I understand what you mean, and have done it that way.  Rescue group has all units marked as playable, and prisoners are marked as playable.  Once you rescue a prisoner, he joins the Rescue group, and then is respawnable for players in Rescue group.

But I don't like the Prisoners being selectable as Playable units at beginning of coop mission, as there is nothing for a player to do as a prisoner.

What I'd like is to have prisoners be Playable only after being rescued.

I saw a mission that did this once, where reinforcements arrived, then joined the players group, and were playable.  But these reinforcements were not shown as selectable playable units at mission start.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re: Add Playable Units when game is in-progress
« Reply #3 on: 10 Aug 2006, 22:51:40 »
Hi

Quote
A player will respawn into an AI, no matter if the AI is set to playable or not to begin with

That makes me think it doesn't matter if the AI unit was in the mission when the mission started, just that it needs to be in the players group when you make the player respawn into 'group'. So try to createVehicle the prisoners after the mission has started, and then do the join and respawn stuff.

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re: Add Playable Units when game is in-progress
« Reply #4 on: 11 Aug 2006, 00:02:30 »
Well, he doesn't have to do it that "hard" really. All you need to do is set the prisoner to not playable in the edior. When he joins the group, player will respawn into him when he is the next in line.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Add Playable Units when game is in-progress
« Reply #5 on: 11 Aug 2006, 01:06:05 »
Garcia, thanks for clearing up a bad assumption I've had for years.  I always though that Respawn to Group would only respawn to units that were pre-designated as Playable in the editor.  After reading your posts I tweaked my mission so all players non-playable in my group, and I still respawned to them.

That clears this up, and fixes my problem.

Thanks again.  Case closed.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...