Jump to content
Sign in to follow this  
Bellicosity

AI Just Keels Over Dead

Recommended Posts

Go to 097054. There's two tower like objects there 245063 and 245062. Place an AI unit nearby with this in their init:

this setPos ((nearestBuilding this) buildingPos 1)

Watch if for a minute (at most), it normally only takes a few seconds.

The unit will just keel over dead. This happens in most every tower I have found, randomly. Why is this going on and what can I do to avoid it from happening?

I tried searching for this anomaly but considering 'AI' is too small to get searched for (btw, BI, you might want to fix that. AI shouldn't get filtered out) its incredibly hard to search and see if its happened and been fixed before. Considering that, I have added these words at the end to (hopefully) help whomever else goes searching for this problem in the future.

Bot Computer Death Dies Tower Building High Up Spontaneously Keals Keal Keel Artificial Intelligence

Share this post


Link to post
Share on other sites

I'm noticed placing AI in any building at a certain point will kill them too. However, I only noticed it after the latest patch.

Share this post


Link to post
Share on other sites

I too am still looking for an answer to this

---------- Post added at 06:15 AM ---------- Previous post was at 04:31 AM ----------

I found a pseudo solution to this. Dont start them in the tower. Do code like this on a trigger or something that fires once the mission has started (not init).

man doMove [(((nearestBuilding man) buildingPos 1) select 0) + 1, (((nearestBuilding man) buildingPos 1) select 1) + 1, (((nearestBuilding man) buildingPos 1) select 2)];

You'll notice two things. One, that you can streamline the code by pulling out the nearestBuilding part into a variable so its only called once. And two, that I am adding 1 to x and y. This is because otherwise they stand at the top of the ladder. Its basically an offset so they move off it. You'll want to change it based off the tower they are climbing up. It doesn't start them in the tower but at least they wont keel over

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  

×