Game Development Reference
In-Depth Information
Setting influences
To set an influence value, you can call Sandbox.SetInfluence , passing in the layer
of the map to be affected, the vector position to be affected, as well as the value. The influ-
ence map automatically truncates values outside the supported range from negative to pos-
itive:
Sandbox.SetInfluence(
sandbox,
influenceMapLayer,
position,
influenceValue);
The following screenshot illustrates what happens when you set a value directly on the in-
fluence map:
An influence map showing the positions of influence for all previous examples
Search WWH ::




Custom Search