20 proto native
bool Start(
float duration,
bool calledByWeather);
27 proto native
void Stop(
float duration,
bool calledByWeather);
90 protected event void OnStart(
bool continuedSession,
bool calledByWeather =
false)
95 GetGame().GetMission().GetWorldData().WeatherSandstormStart(continuedSession);
110 protected event void OnStop(
bool calledByWeather =
false)
115 GetGame().GetMission().GetWorldData().WeatherSandstormStop(calledByWeather);
130 string className =
"ScriptedSandstormController";
131 return className.
ToType();
SandstormController Sandstorm
proto native float GetIntensity(vector worldPosition)
Returns the intensity of the sandstorm at a given position in world space. The sandstorm must be acti...
proto native float GetPointOnEdge(vector worldPosition, out vector outPosition)
Projects the provided worldPosition to the edge of the sandstorm. The sandstorm must be active prior ...
proto native bool IsPositionAtEnd()
Returns whether the sandstorm has advanced and reached the end (final) position. The sandstorm must b...
proto native float GetRemainingMovementDuration()
Returns the remaining movement duration until the sandstorm reached its end (final) position at its c...
proto native vector GetPosition()
Returns the current position of the sandstorm in world space. The sandstorm must be active prior to t...
float GetIntensityForPlayer(Man player)
Returns the intensity of the sandstorm at a players head position in world space. Value is influenced...
event void OnUpdate(float deltaTime)
Callback raised every tick for as long as the sandstorm is active. Raised for both the server and the...
proto native float GetSpeed()
Returns the speed in m/s at which the sandstorm advances. The sandstorm must be active prior to this ...
proto native void Stop(float duration, bool calledByWeather)
Stops the sandstorm, leaving it to fade out over duration seconds. The sandstorm must be active prior...
static event GetScriptedType()
This method may be implemented to override the default sandstorm controller class instantiated by the...
void ~SandstormController()
event void OnStop(bool calledByWeather=false)
Callback raised when the sandstorm becomes inactive. Raised for both the server and the client.
event void OnStart(bool continuedSession, bool calledByWeather=false)
Callback raised when the sandstorm becomes active. Raised for both the server and the client.
proto native bool Start(float duration, bool calledByWeather)
proto native vector GetDirection()
Returns the direction from the start position to the end position of the sandstorm.
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto native float GetMagnitude()
Returns the magnitude of the sandstorm - the intensity independent of its position.
void SandstormController()
Creation of SandstormController is disallowed in scripts. Retrieve current instance using Weather::Ge...
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...