ViciousViper 1 Posted June 16, 2013 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
casemonster 1 Posted June 16, 2013 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
ViciousViper 1 Posted June 17, 2013 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
XSOF - Toxx 10 Posted June 17, 2013 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
ViciousViper 1 Posted June 17, 2013 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
SavageCDN 231 Posted June 20, 2013 UPS might have a function to add this on a group/unit respawn... I know other AI scripts like DAC can do this. For FSMs I believe you are looking for execFSM http://community.bistudio.com/wiki/execFSM Share this post Link to post Share on other sites