Product Chat / Soldier not following waypoint

Author
Message
Trollbae
Reviewed GameGuru on Steam
5
Years of Service
User Offline
Joined: 4th Jun 2019
Location: England
Posted: 5th Jan 2020 21:59
Hello,
This is a map that is currently in progress, and for some reason my base combat soldier is refusing to follow the way points I have provided for him until the player is near. He just remains stationary, then when the player is near, he starts following the points. This would be fine if the player didn't have a high-zoom sniper rifle where he can just zoom in and see the enemy whilst he is stationary.

The soldier alwaysactive=Yes and IsImmobile=No. Any ideas why this is not working?

Attachments

Login to view attachments
PM
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 5th Jan 2020 23:28
Sadly, AI scripts will only start running once the player is within (I think) 3000 units of the entity running the script, regardless of whether you set him to alwaysactive or not. This was done as an efficiency measure to stop Game Guru running AI scripts on enemies on the other side of the map, but it makes it really difficult in situations like this.

I've encountered this problem myself but never found a way around it, short of redesigning my levels to not feature great distances between the player and enemies. It kinda sucks...

AE
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 6th Jan 2020 01:48
For me it works well, I've tried the combat soldier.
The sequence is as follows:
He goes from the first node to the last and then passes to idle state for a short time, then returns to the first node and back to the last, and repeats the same process, while the player watches from a distance.
I did not need "Always active = yes"

Maybe checking files via steam, might help.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 6th Jan 2020 02:35 Edited at: 6th Jan 2020 02:36
Quote: "Sadly, AI scripts will only start running once the player is within (I think) 3000 units of the entity running the script, regardless of whether you set him to alwaysactive or not. "

Really ?
If you look very closely you can only just see him walking .. Any further back and hes out of sight .
This is with always active on BTW

The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 7th Jan 2020 07:25
Ah. Just ran my own tests and sure enough it worked fine. This has obviously been patched at some point.

In that case, Trollbae, I'm scratching my head a bit - maybe the waypoint path is too complex? Have you tried laying out a simpler path?

AE
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Jan 2020 10:16
From your original screenshots it looks to me that the start of the waypoints is too close to another point in the loop of waypoints and it's probably getting confused as to where to start walking.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Trollbae
Reviewed GameGuru on Steam
5
Years of Service
User Offline
Joined: 4th Jun 2019
Location: England
Posted: 10th Jan 2020 17:05
Thank for all the comments everyone,

Unfortunately I have tried running a simpler way point, removed nearby waypoints too but still nothing is working properly.
Until the today where I load up the level and scope in, contemplating removing the entity all-together, and starts staggering to the left,

Suddenly my faith in GG reignites, but this will forever go down as one of the mystical GG inconsistencies...

TLR - It works now thanks guys
PM

Login to post a reply

Server time is: 2024-11-23 19:40:27
Your offset time is: 2024-11-23 19:40:27