Jump to content
Sign in to follow this  
WalrusNZ

Making Player invisible to ai or ai invisible to ai

Recommended Posts

Hi all, i'm just messing around in the editor making a mission. Im trying to make Opfor units ambush Takistan Guerillas. It is not going so well. The Guerillas are spotting the opfor units before they hit the trigger which lets opfor fire. Is there any way to make the opfor units invisible up until a certain point?

Thanks in advance :)

Walrus

Share this post


Link to post
Share on other sites

You could make the opfor units join a west side group and then make them join an east side group at a given point. Although you will have to create waypoints via triggers in that case.

Or you can try these: nameofsoldier disableAI "AUTOTARGET"; nameofsoldier disableAI "TARGET"

Edited by ziiip

Share this post


Link to post
Share on other sites

Ok i will try that. thanks for the reply :)

Well i tried the bottom one and it didnt work. I want the ai to actually not notice the ambushers until they fire. Not sure how to do that though. :( oh well

As for the top one i probably should have told you that i had all 3 factions in the mission, the 3rd was me, the Us Sniper watching all the chaos :D

Independants are friendly to nobody on my settings

---------- Post added at 12:05 PM ---------- Previous post was at 11:40 AM ----------

I was kind of going for the Ghost Mode that was on Loki's Lost key. Anyone know how he did it?

Edited by WalrusNZ

Share this post


Link to post
Share on other sites

Set everyone to captive true, ie, unit setcaptive true, then set everyone to captive false when required to start shooting at eachother.

Share this post


Link to post
Share on other sites

http://www.kylania.com/ex/?p=98

This might help you too. There are many fantastic scripts on that site. Haven't heard from Kylania in a while, I wonder what's up?

Share this post


Link to post
Share on other sites

Not tested, but should work.

You could use the following code in each of the ambush AI group's init line

hideObject this;

Then assuming you have grouped your BLUFOR units using somthing like this

Alpha = group this; this setGroupId ["Alpha"];

Then on your trigger have something like this (name all units)

{_x hideobject false} forEach (group Alpha);

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  

×