Jump to content
Sign in to follow this  
Rocko Bonaparte

Respawning into other units

Recommended Posts

I discovered today that it's non-trivial to move the player into a different unit, in singleplayer or multiplayer.  I was trying to change the unit over to a pilot, using some kind of GUI I had created for this kind of thing.  Of course I couldn't get it to work.

Trying to assign player to something else just doesn't work.  I was trying to think of circumstances where I had done this before, but I couldn't.  I have spawned units in vehicles and things like that, but not this.  I had recalled MFCTI had some kind of team respawn that worked differently than the default; it was likely scripted.  I checked that source and found that while it transfers equipment over from another unit, it won't transfer that unit entirely.  Generally what this means is the player respawns as an officer, with the officers appearance, but with the old unit's weapons.  This is a real downer when respawning into, say, an exposed black-op.

It's now obvious I'd need a crazy hack to get the unit's appearance to transfer.  I am thinking this isn't really possible.  However, I was hoping to hear of somebody else who may have tried already and has something to share.  It would seriously damper what I'm trying to script right now.

Share this post


Link to post
Share on other sites

Well, first off: wrong forum section (mission editing & scripting)

The only way to change your unit is group respawn, where you respawn into the next member of the your group.

~S~ CD

Share this post


Link to post
Share on other sites

Ack, I fear the lack of discussion on this in general has just been from posting in the wrong spots or giving the impression I didn't search about it too much before hand.

I'll just blame it on the whole activity frying my brains.

Chris Death: Group respawn is about the only way I can think of for spawning into the new unit. My idea was to create the new unit, make them the #2 spot in the squad, and then kill off the player. They should move into the #2 spot. Of course, that has the complications of recording that the player died, and the transition not being immediate.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×