Jump to content
Petersang

AI's are dying after a Paradrop

Recommended Posts

At least two ways:

1. replace:

waitUntil {uiSleep 2; !isNull objectParent _unit};

by:

waitUntil {uiSleep 2; isTouchingGround _unit};

(no need to uiSleep 30!)

 

Sometimes isTouchingGround fails if unit lands on building or rock

 

2. replace:

waitUntil {uiSleep 2; !isNull objectParent _unit};

by:

waitUntil {uiSleep 2; !isNull objectParent _unit};

waitUntil {uiSleep 2; isNull objectParent _unit};

 

Here you are waiting for chute, then no more chute. Reliable!

  • Thanks 1

Share this post


Link to post
Share on other sites
58 minutes ago, pierremgi said:

At least two ways:

1. replace:

waitUntil {uiSleep 2; !isNull objectParent _unit};

by:

waitUntil {uiSleep 2; isTouchingGround _unit};

(no need to uiSleep 30!)

 

Sometimes isTouchingGround fails if unit lands on building or rock

 

2. replace:

waitUntil {uiSleep 2; !isNull objectParent _unit};

by:

waitUntil {uiSleep 2; !isNull objectParent _unit};

waitUntil {uiSleep 2; isNull objectParent _unit};

 

Here you are waiting for chute, then no more chute. Reliable!

 

Thank you..

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

×