Jump to content
Mirek

AI jouin Group Player upon ENH_isHostage = false;

Recommended Posts

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
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")

 

  • Thanks 1

Share this post


Link to post
Share on other sites

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

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

  • Thanks 1

Share this post


Link to post
Share on other sites

I got it working with:

condition:
!(host_5 getVariable "Enh_isHostage")

on act:

[host_5] join (group player);

Enjoy! 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks Guys i will try.

 

Share this post


Link to post
Share on other sites
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

  • Like 1

Share this post


Link to post
Share on other sites
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!

  • Like 1

Share this post


Link to post
Share on other sites
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 🙃

  • Like 1

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×