Mirek 166 Posted April 30, 2020 Hello, I want an AI who is set as hostage by ENH_isHostage to jouin players group upon rescuie. it is in multiplayer COOP scenario and i would like the hostage to follow the player who rescued it, and obey the players orders. I have a trigger. in Condition i tried: host_5 getVariable "ENH_isHostage" == 0; host_5 getVariable ENH_isHostage == False; host_5 getVariable ["ENH_isHostage", False]; On act: [host_5] join (group player); But it isnt working. I cant find any documentation for ENH_isHostage. Share this post Link to post Share on other sites
Dedmen 2588 Posted April 30, 2020 42 minutes ago, Mirek said: host_5 getVariable "ENH_isHostage" == 0; Its a boolean, comparing boolean with number will never yield true 42 minutes ago, Mirek said: host_5 getVariable ENH_isHostage == False; its a boolean, you cannot compare boolean with false because that doesn't make any sense 42 minutes ago, Mirek said: host_5 getVariable ["ENH_isHostage", False]; false is the default value, I assume you want to wait till NOT isHostage. NOT (host_5 getVariable "ENH_isHostage") 1 Share this post Link to post Share on other sites
Mirek 166 Posted April 30, 2020 Thanks but NOT (host_5 getVariable "ENH_isHostage") Doesnt work either Tried with exclamation mark and it also doesnt work Share this post Link to post Share on other sites
Play3r 143 Posted May 1, 2020 Have you tried to use the 3den enhanced mod for the editor, in that one you can make ai hostage and free them with a addaction then they follow the player who set them free . https://www.youtube.com/channel/UCFG7-2t8NHvDwW8rJml6Pew/videos https://steamcommunity.com/sharedfiles/filedetails/?id=623475643&searchtext=3den+enhanced 1 Share this post Link to post Share on other sites
zagor64bz 1225 Posted May 1, 2020 I got it working with: condition: !(host_5 getVariable "Enh_isHostage") on act: [host_5] join (group player); Enjoy! 1 1 Share this post Link to post Share on other sites
Mirek 166 Posted May 1, 2020 Thanks Guys i will try. Share this post Link to post Share on other sites
Mirek 166 Posted May 2, 2020 20 hours ago, zagor64bz said: I got it working with: condition: !(host_5 getVariable "Enh_isHostage") on act: [host_5] join (group player); Enjoy! The space! Thats why it didnt work for me before. i forgot the space between the exclamation mark ant the bracket. Thank you zagor64bz 1 Share this post Link to post Share on other sites
zagor64bz 1225 Posted May 2, 2020 4 hours ago, Mirek said: The space! Thats why it didnt work for me before. i forgot the space between the exclamation mark ant the bracket. Thank you zagor64bz No problem bud..actually you should thank @Dedmen... he explained way better than me why it wasn't working, and gave the solution. NOT (host_5 getVariable "ENH_isHostage") Where NOT translate to " ! " He obviously was trying to teach you how to fish instead of feeding you a fish, as I did.😂 Anyway..stai safe and TK! 1 Share this post Link to post Share on other sites
Dedmen 2588 Posted May 5, 2020 On 5/2/2020 at 7:56 AM, Mirek said: i forgot the space between the exclamation mark ant the bracket. space is not needed 🙃 1 Share this post Link to post Share on other sites
Mirek 166 Posted May 21, 2020 On 5/5/2020 at 3:17 PM, Dedmen said: space is not needed 🙃 It didnt work without the space. Share this post Link to post Share on other sites