28.12.2014 Views

The AI Systems of Left 4 Dead - Valve

The AI Systems of Left 4 Dead - Valve

The AI Systems of Left 4 Dead - Valve

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Goal: Deliver Robust Behavior Performances<br />

‣ Action Transitions<br />

• Continue()<br />

No transition, continue this Action next frame.<br />

• ChangeTo( NextAction, “reason” )<br />

Exit the current Action and transition into NextAction.<br />

• SuspendFor( NextAction, “reason” )<br />

Put the current Action “on hold” (bury it) and enter NextAction.<br />

• Done( “reason” )<br />

This Action is finished. Resume the “buried” Action.<br />

• “reason”<br />

A string documenting the reason why the transition occurred (ie:<br />

“<strong>The</strong> player I was chasing died”). Reason strings help clarify the<br />

Action system and are invaluable for realtime debug output.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!