Re: Does anyone know if they can make an AI stand completely still

by MADrag0n
Reply

Original Post

Re: Does anyone know if they can make an AI stand completely still

[ Edited ]
★★★★ Novice

@FastBuddhaThen the position wouldnt change but would always be the same.

 

As far as I understood that should be the case though. Otherwise players can just camp for it.

Message 11 of 14 (275 Views)

Re: Does anyone know if they can make an AI stand completely still

★ Apprentice
@piri89 Ye i thought the point was to have it stay at the same position the entire game.
Message 12 of 14 (267 Views)

Re: Does anyone know if they can make an AI stand completely still

★★★★ Novice

Try this one:

 

In case it is not clear what it does: The first operation is the same (since this was confirmed to work), it just adds a new variable positionTracked. This has to be set to true at the beginning, so it won't trigger the ongoing event that follows. When he dies the first time it changes to "false". After that, there is an ongoing check if the solder is an AI, is alive and has the positionTracked to false.

If that applies (what will be the case after it first days and is alive again), the event is triggered, doing the same like the first event, but with the updated position. Because I don't know when an AI will have the new position assigned while it's dead, it waits for 10 seconds after dieing, before it sets the variable back to false and thus triggers the event again. Maybe try different numbers for the wait here, if it first moves for a few second before it will be teleport-stuck on its position again.

Message 13 of 14 (255 Views)

Re: Does anyone know if they can make an AI stand completely still

[ Edited ]
Hero (Retired)

Your mistake is that you are missing the server limit for NON-DELAYed cycles with an undefined number - the limit is set to 1024 cycles. U need to count 1024 cycles and wait or just use "wait ( 1 )" anywhere inside the "while".

Using "WaitUntil" instead of "Wait" inside a "While" is not a good idea, because you cannot control the speed and number of loops, and exceed limit.

You can use one of the two options below:

 

Wait.jpg

 

or

 

1024.jpg

 

The problem is that a mandatory delay of 1 second will lead to unpredictable results, AI-ghosts and AI-hares. )))

Message 14 of 14 (150 Views)

ea-play-promo-splash

What's EA Play?

New name, new look, same great benefits: EA Access and Origin Access are now EA Play.

Get more info on the change here.

ea-help-promo-3

Forget your EA Account ID or password?

Reset, update, or link your account information.

View more on EA Help