Book Image

Learning Game AI Programming with Lua

By : David Young
Book Image

Learning Game AI Programming with Lua

By: David Young

Overview of this book

Table of Contents (16 chapters)
Learning Game AI Programming with Lua
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with AI Sandbox
Index

Clearing influences


To remove all current influences on a specific layer of the map, you can call Sandbox.ClearInfluenceMap. Influences on the map will not decay with time; so typically, you must clear the influence map before calculating a new spread of influences:

Sandbox.ClearInfluenceMap(sandbox, influenceMapLayer);

Visualizing what occurs when clearing the influence map; any cells set to any value other than zero will be set back to zero.

A cleared influence map