Not Stable Yet!
This article is part of the Witcher 3 scripting community documentation, which is considered to be UNSTABLE until after the release of the
Blood and Wine DLC. Edits to these pages may be overwritten without notice!
CWorld
Signature
import class CWorld extends CResource
Parent
CResource
Version
1.12
Path
/engine/world.ws
ISerializable > IScriptable > CObject > CResource
Public Functions
ForceGraphicalLOD
import final function ForceGraphicalLOD(lodLevel : int )
Parameters:
lodLevel : int
Location:
starts @ line 85, ends @ line 85
GetDepotPath
import final function GetDepotPath() : string
Returns:
string
Location:
starts @ line 82, ends @ line 82
GetTerrainParameters
import final function GetTerrainParameters(out terrainSize : float , out tilesCount : int ) : bool
Parameters:
out terrainSize : float
out tilesCount : int
Returns:
bool
Location:
starts @ line 88, ends @ line 88
GetTraceManager
GetWaterDepth
import final function GetWaterDepth(point : Vector , optional dontUseApproximation : bool ) : float
Parameters:
point : Vector
optional dontUseApproximation : bool
Returns:
float
Location:
starts @ line 37, ends @ line 37
GetWaterLevel
import final function GetWaterLevel(point : Vector , optional dontUseApproximation : bool ) : float
Parameters:
point : Vector
optional dontUseApproximation : bool
Returns:
float
Location:
starts @ line 34, ends @ line 34
GetWaterTangent
import final function GetWaterTangent(point : Vector , direction : Vector , optional resolution : float ) : Vector
Parameters:
point : Vector
direction : Vector
optional resolution : float
Returns:
Vector
Location:
starts @ line 40, ends @ line 40
HideLayerGroup
import final function HideLayerGroup(layerGroupName : string )
Parameters:
layerGroupName : string
Location:
starts @ line 16, ends @ line 16
NavigationCircleTest
import final function NavigationCircleTest(position : Vector , radius : float , optional ignoreObstacles : bool ) : bool
Parameters:
position : Vector
radius : float
optional ignoreObstacles : bool
Returns:
bool
Location:
starts @ line 49, ends @ line 49
NavigationClearLineInDirection
import final function NavigationClearLineInDirection(pos1 : Vector , pos2 : Vector , radius : float , out closestPointOnLine : Vector ) : bool
Parameters:
pos1 : Vector
pos2 : Vector
radius : float
out closestPointOnLine : Vector
Returns:
bool
Location:
starts @ line 68, ends @ line 68
NavigationClosestObstacleToCircle
import final function NavigationClosestObstacleToCircle(position : Vector , radius : float , out closestPointOnGeometry : Vector , optional ignoreObstacles : bool ) : float
Parameters:
position : Vector
radius : float
out closestPointOnGeometry : Vector
optional ignoreObstacles : bool
Returns:
float
Location:
starts @ line 64, ends @ line 64
NavigationClosestObstacleToLine
import final function NavigationClosestObstacleToLine(pos1 : Vector , pos2 : Vector , radius : float , out closestPointOnLine : Vector , out closestPointOnGeometry : Vector , optional ignoreObstacles : bool ) : float
Parameters:
pos1 : Vector
pos2 : Vector
radius : float
out closestPointOnLine : Vector
out closestPointOnGeometry : Vector
optional ignoreObstacles : bool
Returns:
float
Location:
starts @ line 57, ends @ line 57
NavigationComputeZ
NavigationFindSafeSpot
import final function NavigationFindSafeSpot(position : Vector , personalSpace : float , searchRadius : float , out outSafeSpot : Vector ) : bool
Parameters:
position : Vector
personalSpace : float
searchRadius : float
out outSafeSpot : Vector
Returns:
bool
Location:
starts @ line 72, ends @ line 72
NavigationLineTest
import final function NavigationLineTest(pos1 : Vector , pos2 : Vector , radius : float , optional ignoreObstacles : bool , optional noEndpointZ : bool ) : bool
Parameters:
pos1 : Vector
pos2 : Vector
radius : float
optional ignoreObstacles : bool
optional noEndpointZ : bool
Returns:
bool
Location:
starts @ line 45, ends @ line 45
PhysicsCorrectZ
import final function PhysicsCorrectZ(position : Vector , out z : float ) : bool
Parameters:
position : Vector
out z : float
Returns:
bool
Location:
starts @ line 80, ends @ line 80
PointProjectionTest
ShowLayerGroup
import final function ShowLayerGroup(layerGroupName : string )
Parameters:
layerGroupName : string
Location:
starts @ line 13, ends @ line 13
SphereOverlapTest
StaticTrace
import final function StaticTrace(pointA, pointB : Vector , out position : Vector , out normal : Vector , optional collisionGroupsNames : array <name >) : bool
Parameters:
pointA
pointB : Vector
out position : Vector
out normal : Vector
optional collisionGroupsNames : array <name >
Returns:
bool
Location:
starts @ line 22, ends @ line 22
StaticTraceWithAdditionalInfo
SweepTest
import final function SweepTest(pointA, pointB : Vector , radius : float , out position, normal : Vector , optional collisionGroupsNames : array <name >) : bool
Parameters:
pointA
pointB : Vector
radius : float
out position
normal : Vector
optional collisionGroupsNames : array <name >
Returns:
bool
Location:
starts @ line 28, ends @ line 28
Event Handlers
OnWeatherChange
event OnWeatherChange()
Location:
starts @ line 94