Jump to content
Sign in to follow this  
1para{god-father}

Safe Zone- Telport

Recommended Posts

I have a trigger area , and i need to teleport West back out of that area if no Bluefor are in the zone ,How can i do that ?

Thanks

Share this post


Link to post
Share on other sites

trigger by Any, Present, Repeated

condition : ({alive _x && side _x == west} count thisList) < 2;

Act : (thisList select 0) setPos (getMarkerPos "teleportPoint");

DEMO

Share this post


Link to post
Share on other sites

Sorry my mistake I need to Teleport EAST AI back out of the area in No Bluefor are in it

Edited by psvialli

Share this post


Link to post
Share on other sites
Sorry my mistake I need to Teleport EAST AI back out of the area in No Bluefor are in it

It seems all you have to do is just change "west" to "east"

Change this


condition : ({alive _x && side _x == west} count thisList) < 2;
Act : (thisList select 0) setPos (getMarkerPos "teleportPoint");

to this


condition : ({alive _x && side _x == east} count thisList) < 2;
Act : (thisList select 0) setPos (getMarkerPos "teleportPoint");

Share this post


Link to post
Share on other sites

Hmmm that does not seem to work ?

When i (bluefor leave the area OPFOR still stay in the zone and do not get teleported away ?

Share this post


Link to post
Share on other sites
Hmmm that does not seem to work ?

When i (bluefor leave the area OPFOR still stay in the zone and do not get teleported away ?

Post exactly what you have in your script so others know where to help you.

Share this post


Link to post
Share on other sites

OK change of Tact as the Teleport did not do what I needed it to do , so i thought i would just delete any OPFOR in the area if NO bluefor are in it.

It deletes them if they are already in the area if i move out but if they go back into the area when I am still not there they do not get deleted , its like it is not set to Repeat ?

Below is what I have am I making it to complicated ?

I have 2 triggers

1 set to Bluefor NOT present -Repeated

Cont:-

this

Act: KeepPeopleOut=true;publicVariable "KeepPeopleOut"

Deactivate

KeepPeopleOut=false;publicVariable "KeepPeopleOut"

2nd trigger called "clean_holdarea"

OPFOR Present - Repeated

Cond:

This And KeepPeopleOut

Act:

{deletevehicle _x} foreach (list clean_holdarea)

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  

×