Jump to content
Sign in to follow this  
ViciousViper

Zombie unit with repsawn help!

Recommended Posts

Hello There!

I've got a Problem.

I already searched my problem in the Internet but got no useful results.

My porblem is, ive got a Zombielogic script. Its very basic, the unit runs the script and becomes a zombie.

But, i want to let the unit respawn I tried it with Kronzkys script wich respawns specific unit but if the unit is respawned, it doesnt run the Zombielogic script, its just again the basic unit.

I dont know, how t fix this. At the moment its a "dayz like" mission without any Zombies. Just with AI players which walks araound the map (with Waypoints).

Thank you ahead.

Yours Faithfuly ViciousViper.

Share this post


Link to post
Share on other sites

You could try running a respawn event handler to run the code when the unit respawns?

this addEventHandler ["respawn", "zombie code;"];

Share this post


Link to post
Share on other sites

Nope, it does not look like that it is working, the Unit just respawns as usual.

Share this post


Link to post
Share on other sites

I think EventHandler-Names are case-sensitive:

this addEventHandler ["Respawn",

{

// your code hier (or the call for the zombie .sqf)

}];

Share this post


Link to post
Share on other sites

Well, the script, hat the unit calls, is a .FSM data. and thats my problem, i dont now how to call this kind of script. The weird thibng is, it works, if the unit is created at the start of the mission, but doesnt work, if the unit respawns.

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  

×