Sign in to follow this  
Followers 0
Sir DannyDoomno1

AI Base Script

1 post in this topic

hey guys im making an AI base script that spawns ai when people are close and should output to all players when only 2 AI are left. or time out if nobody kills the AI.

I have this code :

_complete = false;
_Timer = 0;
    sleep 10;
    _Timer = _Timer + 1;
    if ( { !(isPlayer _x) && (_x distance _pos < 120)  } count AllUnits < 2 ) then {_complete = true; true};
    if (_Timer == 90) then {_complete = false; true}

if (_complete) then {

but it only ends up doing the timeout.

any ideas why ?

if you help me out i will share all my code arround this as a reward if you like.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.