SnowmaneYT 5 Posted January 29, 2020 Hello, I have a player AI with "BLUFOR_AI synchronizeObjectsAdd [this];" as ini code. When die he needs the code again and i'm trying to do adding "BLUFOR_AI synchronizeObjectsAdd [player];" into onPlayerRespawn.sqf with no effect. How i can get working? Thanks! Share this post Link to post Share on other sites
7erra 629 Posted January 29, 2020 What is BLUFOR_AI? And what do you mean with player AI? "Player AI" is a contradiction in itself. Share this post Link to post Share on other sites
SnowmaneYT 5 Posted January 29, 2020 BLUFOR_AI is just a variable name refering to moduleSpawnAI in order to get sector tactics working. Player AI = AI controlled player if no human is controlling it. I try to explain in other words. A unit (player in this case) have a ini param of "variableName synchronizeObjectsAdd [this];". When this unit die, the parameter need to be inserted again because the AI stop doing sector tactics, and one way to do it is from onPlayerRespawn.sqf file. I tried with "variableName synchronizeObjectsAdd [player];" with no luck. Any help, please? Thanks. Share this post Link to post Share on other sites
7erra 629 Posted January 29, 2020 Soo is the unit a player when the unit dies? Share this post Link to post Share on other sites
SnowmaneYT 5 Posted January 29, 2020 Is an AI controlling the player unit... Share this post Link to post Share on other sites
7erra 629 Posted January 30, 2020 That's a playable unit. Big difference. The onPlayerRespawn.sqf doesn't execute for AI units. Try the mission EH "EntityRespawn" or MP EH "MPRespawn" instead. Share this post Link to post Share on other sites
SnowmaneYT 5 Posted January 30, 2020 Thanks so much for the info, i'm sure the answer is there. Share this post Link to post Share on other sites