Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Problem with AI and waypoints

Author
Message
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 21st Sep 2011 12:47
Iv'e currently been working on an AI script as currently all my enemies are having a prolem. When they move towards me and say a crate or some other obstical gets in their way, they stop and can move no further, threding the ground. My theory was that if I changed the script of the AI so that if the enemy stopepd it would go towards the nearest way point (dotted around the map.) When it reached the waypoint it would stop and continue strait towards the player. This is the script that I made but it doen't seem to be working at all. Could any of you guys be able to tell me where I went wrong?



Help me.... I'm new!
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 21st Sep 2011 13:08 Edited at: 21st Sep 2011 13:19
what i do is using the standard waypoint-script and adding my behavior-scripts simply below the waypointstates, adding the used states (here: action-state=1).

works pretty good. you dont need normal states for waypoints because waypointstate is a state for itself.
oh, and then try this line instead of yours:



try that combining method, hope it helps ... if speed=0 works as a condition, i dont know.
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 21st Sep 2011 13:45
I've tried this script as an experiment.



When the enemy gos into a wall, it is not moving anywhere but it's speed is still the same. When I ran this script the enemy did not destroy itself when it ran into the wall.

Is there any other way I can trigger this?

Help me.... I'm new!
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 21st Sep 2011 14:27 Edited at: 22nd Sep 2011 10:56
so speed-condition seems to not work correctly.
if speed=X doesnt work properly, you can try around with raycast-conditions and idle-actions, but i have no experience with ai-scripting yet, sorry.
JRH
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 21st Sep 2011 17:15
speed=X, never heard of it. Try something else...

Login to post a reply

Server time is: 2024-11-27 22:01:33
Your offset time is: 2024-11-27 22:01:33