Jump to content
Sign in to follow this  
majorexperimental

How make certain AI-troops respawn?

Recommended Posts

I have searched the forum and the web but of some reason it seems to tricky get a simple answer on this so I post my question: How do I make certain AI-troops (in multiplayer) respawn? I have a feeling (a hope!) that some kind of code in the individual troops Initializing-field would do the trick; some thing like this...

this addeventhandler ["respawn"];

In my description-document I have this respaw code...

    respawn= "BASE";
   respawndelay= 30;

...and I want those conditions to go for that AI-troop as well. By the way; I also want to know how to put a limit how many time it will be possible to respawn.

So... Any ideas?

Edited by Moonbus

Share this post


Link to post
Share on other sites

You can make unit placed in editor respawn at base. But they will just stand on respawn point.

Make an enemy unit playable and create respawn marker for his side.

If you using script, you better off creating new units.

Share this post


Link to post
Share on other sites

That unfortunately won't solve my problem. Right now I have those AI-units i talk about as multiplayer-playable-units; and that works well BUT I don't want them multiplayer-playable. So to make multiplayer-playable-units not possible to joins as human player would be away round this. Does anyone knows how to do that?

(By the way; I did write wrong above; my units dosen't respawn at base; they respawn on the place they died. I want It like that.)

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  

×