Ai condition

From GameStudio Wiki

Jump to: navigation, search

A condition is something that can be defined as being true or false.

Some examples include:

  • Is the player visible?
  • Do I have a weapon?
  • Is my weapon loaded?
  • Is my health greater than 20%?

If all the above conditions are true, the entity might transition from a 'Patrol' state to an 'Attack' state.

Personal tools