Game Development Reference
In-Depth Information
Getting influences
Retrieving values from the influence map is just as simple as calling Sand-
box.GetInfluence at the specific position. As the influence map is built from the nav-
igation mesh, any valid point on the navigation mesh is also a valid grid cell on the influen-
ce map. You can always use Sandbox.RandomPoint or the agent's position to generate
random points that can be influenced:
Sandbox.GetInfluence(
sandbox, influenceMapLayer, position);
Search WWH ::




Custom Search