Jump to content
Sign in to follow this  
Pundaria

Getting an AI defect? And another question about editor

Recommended Posts

1. Could I just switch an AI to another side in one scenario?

2.BTW, I don't know if I could put a west unit into an east faction. So could I?

3.And how to make a trigger trigger off after the change in a unit behaviour?

4. P.s. A trigger trigger after another trigger tiggered

Friends of BI, help!:p

Edited by Pundaria

Share this post


Link to post
Share on other sites
1. Could I just switch an AI to another side in one scenario?

No, but you can either use setCaptive (which makes them look like a civilian) or change his whole side's friendliness to the other sides (so for example, if he's defecting from OPFOR to BLUFOR, put him on Independent side and change the friendliness).

2.BTW, I don't know if I could put a west unit into an east faction. So could I?

Yes you can. You can do this simply by placing the west unit in an east group. Or, if he's by himself, you can open up the mission.sqm and manually change his (and his group's) side to East.

3.And how to make a trigger trigger off after the change in a unit behaviour?

In the trigger condition, to detect if he changes from SAFE to anything else:

behaviour unit != "SAFE"

Or if he changes from anything else to safe:

behaviour unit == "SAFE"

Share this post


Link to post
Share on other sites

Another way to switch sides is make a higher ranking unit of the side you want him to join with deleteVehicle this in it's init, then group your man to this unit.

Share this post


Link to post
Share on other sites
Another way to switch sides is make a higher ranking unit of the side you want him to join with deleteVehicle this in it's init, then group your man to this unit.

Yea, that was covered by this:

You can do this simply by placing the west unit in an east group

;)

Share this post


Link to post
Share on other sites

THX bros~

---------- Post added at 11:33 PM ---------- Previous post was at 11:28 PM ----------

So if I could make a trigger trigger after a trigger triggerred?

Share this post


Link to post
Share on other sites
THX bros~

---------- Post added at 11:33 PM ---------- Previous post was at 11:28 PM ----------

So if I could make a trigger trigger after a trigger triggerred?

Quite easily. The easiest way is to use a variable. Ex:

Trigger1 - On Act:

someVar = true

Trigger2 - Condition:

someVar

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  

×