GSC reference › Built-in
SetSunShadowSplitDistance()
Built-in (engine)
Server
Player Called on: player
Sets the sun shadow split distance for the player
Signature
<player> SetSunShadowSplitDistance(<distance>)
Called on an entity: player SetSunShadowSplitDistance(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| distance | Required | split distance. Setting of 0 reverts to the default split distance. |
Example (from Treyarch's docs)
player SetSunShadowSplitDistance( 200 )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/util_shared.gsc, line 3859
self setsunshadowsplitdistance(self.sun_shadow_split_distance);
Related built-ins
- GetSunShadowSplitDistance()Gets the current sun shadow split difference for the player
- SetNoSunShadow()Sets the no-sunshadow flag.
- RemoveNoSunShadow()Removes the no-sunshadow flag.
- GiveDedicatedShadow()Sets the model lod bias
- DistanceSquared()Returns the squared distance between two points - this is cheaper than the actual distance as it doesn't involve a square root
- Distance2DSquared()Returns the squared distance between two points, ignores height difference.
- Distance()Returns the distance between two points
- IsSplitScreen()Returns true if the game is a splitscreen game
- Distance2D()Returns the distance between two points, ignores height difference.
- PositionQuery_Filter_DistanceToGoal()Calculate the distance to <entity>.goalpos.
- PathDistance()Returns the approximate/semi-accurate path distance between two points or undefined if no path can be found.
- IsUnderwater()Returns 1 if the player is underwater.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).