Jump to content
gc8

Respawn in singleplayer?

Recommended Posts

So I have working respawn code in MP but what if I want the same to work in SP? It doesn't work in SP, all I get is the end screen.

 

does anyone know how to enable respawn in SP?

 

  • Like 1

Share this post


Link to post
Share on other sites

See if this will work in Arma3:

https://forums.bistudio.com/topic/116428-single-player-respawn-script/

Only other ways I know is make units playable and switch to them, use zeus and remote control units,

other then that respawn in sp is/was not ever possible but that script i linked may say or do otherwise.

Share this post


Link to post
Share on other sites

Thanks Gunter Severloh but the stuff in arma2 doesnt really work in arma3. I had working code in arma2 for SP respawn/team switch but the stuff just doesnt work in arma3. I found however a way to override the whole respawn system. Its done by overwriting bis_fnc_respawnNone. That however only works in SP, in MP there's restrictions on what variables you can rewrite. 

Share this post


Link to post
Share on other sites

Typically respawn in SP is simulated, I do it by adding a handleDamage event handler to the player, and once a certain amound of damage has reached (which will certainly kill him), then override the damage and teleport the player to respawn position.

  • Like 2

Share this post


Link to post
Share on other sites

Good stuff, thanks! I think "killed" event handler is good way to go :)

only that I forgot to mention that the player is supposed to hold for while before respawning. so i'll probably just create temporary unit for waiting then.

  • Like 1

Share this post


Link to post
Share on other sites

Typically respawn in SP is simulated, I do it by adding a handleDamage event handler to the player, and once a certain amound of damage has reached (which will certainly kill him), then override the damage and teleport the player to respawn position.

Plz share the code for player.. :)

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

×