23 void EnableEMPlugs(
bool enable)
25 for (
int i = 0; i <
GetGame().m_EnergyManagerArray.Count(); ++i)
27 if (
GetGame().m_EnergyManagerArray[i])
28 GetGame().m_EnergyManagerArray[i].SetDebugPlugs(enable);
455 ret = value.Replace(
"$STR_",
"#STR_");
468 string cfg =
"CfgVehicles " +
class_name +
" model";
472 int to_substring_end = model_path.
Length() - 4;
473 int to_substring_start = 0;
476 for (
int i = to_substring_end; i > 0; i--)
478 string sign = model_path.
Get(i);
481 to_substring_start = i + 1;
486 string model_name = model_path.
Substring(to_substring_start, to_substring_end - to_substring_start);
491 return "UNKNOWN_P3D_FILE";
605 string return_path =
"";
606 int count = array_path.Count();
608 for (
int i = 0; i < count; i++)
610 return_path += array_path.Get(i);
666 proto native
Object CreateObject(
string type,
vector pos,
bool create_local =
false,
bool init_ai =
false,
bool create_physics =
true );
667 proto native SoundOnVehicle
CreateSoundOnObject(
Object source,
string sound_name,
float distance,
bool looped,
bool create_local =
false);
740 Debug.
InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp()+
" item:" + item,
"n/a" ,
"n/a",
"ClearJuncture",player.ToString() );
803 g_Game.GetWorldName(world_name);
810 proto
void FormatString(
string format,
string params[], out
string output);
819 if (index >= players.Count())
910 proto native
void Chat(
string text,
string colorClass);
911 proto native
void ChatMP(Man recipient,
string text,
string colorClass);
918 proto native
void MutePlayer(
string muteUID,
string playerUID,
bool mute);
1052 float high = -9999999;
1053 float low = 99999999;
1055 for (
int i = 0; i < positions.Count(); i++)
1057 vector pos = positions.Get(i);
1078 angles[1] = angles[1]+270;
1081 if (angles ==
"0 540 0")
1089 return ConfigGetInt(
"CfgSurfaces " + surface +
" isDigable");
1095 return ConfigGetInt(
"CfgSurfaces " + surface +
" isFertile");
1102 vector pos =
object.GetPosition();
1104 float radius =
object.ClippingInfo ( min_max );
1105 vector min =
Vector ( pos[0] - radius, pos[1], pos[2] - radius );
1106 vector max =
Vector ( pos[0] + radius, pos[1], pos[2] + radius );
1180 proto native
void OverrideDOF(
bool enable,
float focusDistance,
float focusLength,
float focusLengthNear,
float blur,
float focusDepthOffset);
1182 proto native
void AddPPMask(
float ndcX,
float ndcY,
float ndcRadius,
float ndcBlur);
1238 bool IsKindOf(
string cfg_class_name,
string cfg_parent_name)
1244 if (full_path.Count() == 0)
1249 if (full_path.Count() == 0)
1254 if (full_path.Count() == 0)
1259 if (full_path.Count() == 0)
1265 for (
int i = 0; i < full_path.Count(); i++)
1267 string tmp = full_path.Get(i);
1269 if (tmp == cfg_parent_name)
1297 for (
int i = 0; i < full_path.Count(); i++)
1299 string tmp = full_path.Get(i);
1301 if (tmp == cfg_parent_name)
1321 for (
int index = 0; index < class_count; index++)
1323 string found_class =
"";
1325 if (found_class == searched_member)
1389 return (
g_Game.GetMissionState() ==
DayZGame.MISSION_STATE_MAINMENU);
static int GAME_STORAGE_VERSION
class OptionSelectorMultistate extends OptionSelector class_name
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
enum WaveKind AbstractSoundScene()
class SoundObjectBuilder SoundObject(SoundParams soundParams)
Static data holder for certain ammo config values.
static void Init()
Initialize the containers: this is done this way, to have these not exist on server.
static void Cleanup()
Clean up the data.
Class that holds parameters to feed into CGame.IsBoxCollidingGeometryProxy.
void OnPostUpdate(bool doSim, float timeslice)
Called on World update after simulation of entities.
proto native void RemoveFromReconnectCache(string uid)
Remove player from reconnect cache.
UIScriptedMenu CreateScriptedMenu(int id)
create custom main menu part (submenu)
proto native void RemoteObjectDelete(Object obj)
proto native bool RegisterNetworkStaticObject(Object object)
Static objects cannot be replicated by default (there are too many objects on the map)....
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native void RespawnPlayer()
proto void GetVersion(out string version)
proto native bool PreloadObject(string type, float distance)
Preload objects with certain type in certain distance from camera.
proto native void ObjectDelete(Object obj)
proto native void SetEVUser(float value)
Sets custom camera camera EV. range: -50.0..50.0? //TODO.
proto native void SetVoiceLevel(int level)
Set voice level of VoN (only on client) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
proto native void SetVoiceEffect(Object player, int effect, bool enable)
Enable/disable VoN effect (only on server)
proto void GetWorldName(out string world_name)
proto native float GetDayTime()
Returns current daytime on server.
proto native bool SurfaceIsPond(float x, float z)
proto native vector GetCurrentCameraDirection()
proto native int LoadVersion()
Returns actual storage version - loading.
proto native vector ConfigGetVector(string path)
Get vector value from config on path.
proto native void RemoteObjectTreeDelete(Object obj)
RemoteObjectDelete - deletes only remote object (unregisters from network). do not use if not sure wh...
proto native void GetDiagModeNames(out TStringArray diag_names)
Get list of all debug modes.
proto native bool VerifyWorldOwnership(string sWorldName)
proto native vector ObjectGetSelectionPosition(Object obj, string name)
void OnAfterCreate()
Called after creating of CGame instance.
proto native void AddToReconnectCache(PlayerIdentity identity)
Add player to reconnect cache to be able to rejoin character still existing in the world.
proto native vector ObjectGetSelectionPositionWS(Object obj, string name)
proto native bool IsDedicatedServer()
Robust check which is preferred than the above, as it is valid much sooner.
TimerQueue GetTimerQueue(int call_category)
proto native void SelectSpectator(PlayerIdentity identity, string spectatorObjType, vector position)
Creates spectator object (mostly cameras)
bool AddInventoryJunctureEx(Man player, notnull EntityAI item, InventoryLocation dst, bool test_dst_occupancy, int timeout_ms)
proto native int ServerConfigGetInt(string name)
Server config parsing. Returns 0 if not found.
proto void GetInventoryItemSize(InventoryItem item, out int width, out int height)
proto native vector ObjectWorldToModel(Object obj, vector worldPos)
proto native bool IsBoxCollidingGeometryProxy(notnull BoxCollidingParams params, array< Object > excludeObjects, array< ref BoxCollidingResult > collidedObjects=NULL)
proto native float GetWaterDepth(vector posWS)
proto native void UpdateSpectatorPosition(vector position)
Updates spectator position on server = position of network bubble.
proto native Mission GetMission()
proto native void EndOptionsVideo()
float GetHighestSurfaceYDifference(array< vector > positions)
Returns the largest height difference between the given positions.
AnalyticsManagerServer GetAnalyticsServer()
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
proto void SurfaceGetType(float x, float z, out string type)
proto native void RPC(Object target, int rpcType, notnull array< ref Param > params, bool guaranteed, PlayerIdentity recipient=null)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto native void InitDamageEffects(Object effect)
Initialization of damage effects.
proto native void ChatPlayer(string text)
void OnMouseButtonPress(int button)
Called when mouse button is pressed.
ScriptInvoker GetPostUpdateQueue(int call_category)
proto native vector SurfaceGetNormal(float x, float z)
proto void SurfaceUnderObjectEx(notnull Object object, out string type, out string impact, out int liquidType)
proto native bool GetModToBeReported()
proto native void MuteAllPlayers(string listenerId, bool mute)
Mute all players for listenerId.
proto bool GetHostAddress(out string address, out int port)
Gets the server address. (from client)
proto native void Chat(string text, string colorClass)
Prints text into game chat.
proto void CopyFromClipboard(out string text)
private ref array< ref Param > m_ParamCache
proto native float SurfaceGetSeaLevel()
proto native void StartRandomCutscene(string world)
Starts intro.
proto native bool ClearJuncture(Man player, notnull EntityAI item)
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
proto void SurfaceGetType3D(float x, float y, float z, out string type)
proto native void ConfigGetFloatArray(string path, out TFloatArray values)
Get array of floats from config on path.
proto void GetPlayerNameShort(int maxLength, out string name)
Gets current player name. If length of player name is grater than maxLength, then it is omitted and a...
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native void DisconnectSessionForce()
Forces disconnect from current multiplayer session even if not yet in the game.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto bool ConfigGetBaseName(string path, out string base_name)
Get name of base class of config class on path.
proto native int ConnectLastSession(UIScriptedMenu parent, int selectedCharacter=-1)
Connects to last success network session.
proto native vector GetWorldDirectionFromScreen(vector world_pos)
Transforms position in world to position in screen in pixels as x, y component of vector,...
proto native int Connect(UIScriptedMenu parent, string IpAddress, int port, string password)
Connects to IsServer.
proto native Object CreateStaticObjectUsingP3D(string p3dFilename, vector position, vector orientation, float scale=1.0, bool createLocal=false)
proto native vector ObjectGetSelectionPositionMS(Object obj, string name)
DayZPlayer GetPlayerByIndex(int index=0)
proto native void CopyToClipboard(string text)
proto native int SaveVersion()
Returns actual storage version - saving.
ref AnalyticsManagerClient m_AnalyticsManagerClient
ScriptInvoker GetUpdateQueue(int call_category)
proto native Input GetInput()
proto native void SetPlayerName(string name)
Sets current player name.
bool IsSurfaceDigable(string surface)
Checks if the surface is digable.
proto native void ConfigGetIntArray(string path, out TIntArray values)
Get array of integers from config on path.
proto native void OverrideInventoryLights(vector diffuse, vector ambient, vector ground, vector dir)
proto native void SelectPlayer(PlayerIdentity identity, Object player)
Selects player's controlled object.
proto native bool ScriptTest()
proto native bool AddInventoryJuncture(Man player, notnull EntityAI item, InventoryLocation dst, bool test_dst_occupancy, int timeout_ms)
static bool IsDigitalCopy()
proto native void GetPlayers(out array< Man > players)
proto native void StorageVersion(int iVersion)
Set actual storage version - for next save.
proto void FormatString(string format, string params[], out string output)
string CreateDefaultPlayer()
returns class name of first valid survivor (TODO address confusing naming?)
proto native Object CreateObject(string type, vector pos, bool create_local=false, bool init_ai=false, bool create_physics=true)
Creates object of certain type.
void RPCSelfSingleParam(Object target, int rpcType, Param param)
string ConfigPathToString(TStringArray array_path)
Converts array of strings into single string.
proto native AbstractSoundScene GetSoundScene()
proto native void ProfilerStop(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
bool IsMissionMainMenu()
Returns true when current mission is Main Menu.
proto native void SetMission(Mission mission)
proto native WorkspaceWidget GetLoadingWorkspace()
proto native DayZPlayer GetPlayer()
proto native void GetProfileStringList(string name, out TStringArray values)
Gets array of strings from profile variable.
string GetModelName(string class_name)
Get name of the p3d file of the given class name.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
string CreateRandomPlayer()
returns class name of random survivor (TODO address confusing naming?)
proto native SoundOnVehicle CreateSoundOnObject(Object source, string sound_name, float distance, bool looped, bool create_local=false)
void OnUpdate(bool doSim, float timeslice)
Called on World update.
proto native ContentDLC GetContentDLCService()
Return DLC service (service for entitlement keys for unlock content)
proto native void RequestExit(int code)
Sets exit code and quits in the right moment.
proto native void SetProfileString(string name, string value)
Sets string to profile variable.
proto native void GetPlayerIndentities(out array< PlayerIdentity > identities)
proto native float SurfaceRoadY(float x, float z)
proto native void ConfigGetObjectFullPath(Object obj, out TStringArray full_path)
proto void GetPlayerName(out string name)
Gets current player name.
proto native bool ExtendActionJuncture(Man player, notnull EntityAI item, int timeout_ms)
proto native bool SurfaceIsSea(float x, float z)
proto native void AddPPMask(float ndcX, float ndcY, float ndcRadius, float ndcBlur)
void OnRPC(PlayerIdentity sender, Object target, int rpc_type, ParamsReadContext ctx)
Called after remote procedure call is recieved for this object.
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
AnalyticsManagerClient GetAnalyticsClient()
proto native void BeginOptionsVideo()
proto native void ProfilerStart(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
proto native void DisconnectPlayer(PlayerIdentity identity, string uid="")
Destroy player info and disconnect.
ScriptCallQueue GetCallQueue(int call_category)
proto native MenuData GetMenuData()
Return singleton of MenuData class - at main menu contains characters played with current profile.
proto native void MutePlayer(string muteUID, string playerUID, bool mute)
Mutes voice of source player to target player.
int m_DebugMonitorEnabled
proto native int ConfigGetInt(string path)
Get int value from config on path.
ref AnalyticsManagerServer m_AnalyticsManagerServer
proto native float GetFps()
Returns average FPS of last 16 frames.
proto native float SurfaceGetNoiseMultiplier(Object directHit, vector pos, int componentIndex)
void OnDeviceReset()
Called when inputs is not possible (Steam overlay active or something), all internal script variables...
proto native bool GetDiagModeEnable(int diag_mode)
Gets state of specific debug mode.
proto native Object GetObjectByNetworkId(int networkIdLowBits, int networkIdHighBits)
Returns entity identified by network id.
proto native World GetWorld()
proto bool GetProfileString(string name, out string value)
Gets string from profile variable.
proto native void GetDiagDrawModeNames(out TStringArray diag_names)
Get list of all debug draw modes.
proto native bool ConfigIsExisting(string path)
proto void SurfaceUnderObjectByBone(notnull Object object, int boneType, out string type, out int liquidType)
int ConfigFindClassIndex(string config_path, string searched_member)
proto native bool IsObjectAccesible(EntityAI item, Man player)
returns true if player can access item's cargo/attachments (check only distance)
bool OnInitialize()
Called once before game update loop starts, ret value indicates if init was done in scripts,...
proto native void SetDiagModeEnable(int diag_mode, bool enabled)
Set specific debug mode.
ref MenuDefaultCharacterData m_CharacterData
proto native bool IsClient()
proto native bool IsServer()
proto native vector ObjectGetSelectionPositionLS(Object obj, string name)
proto native bool AddActionJuncture(Man player, notnull EntityAI item, int timeout_ms)
void OnKeyPress(int key)
Called when key is pressed.
proto native void RemoteObjectCreate(Object obj)
RemoteObjectDelete - deletes only remote object tree (unregisters from network). do not use if not su...
proto native bool GoBuyWorldDLC(string sWorldName)
void OnKeyRelease(int key)
Called when key is released.
void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native void EnableVoN(Object player, bool enable)
Enable/disable VoN for target player.
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
void SetDebugMonitorEnabled(int value)
bool ObjectIsKindOf(Object object, string cfg_parent_name)
Returns is object inherited from parent class name.
proto native int GetDiagDrawMode()
Gets current debug draw mode.
proto native vector GetScreenPos(vector world_pos)
Transforms position in world to position in screen in pixels as x, y component of vector,...
proto native void RestartMission()
proto native int ObjectRelease(Object obj)
RemoteObjectTreeCreate - postponed registration of network object tree (and creation of remote object...
proto native bool IsMicCapturing()
Returns whether mic is currently capturing audio from user.
proto native void GetModInfos(notnull out array< ref ModInfo > modArray)
proto bool ConfigGetTextRaw(string path, out string value)
Get raw string value from config on path.
proto native void ClearReconnectCache()
Remove all player from reconnect cache.
proto protected native void CreateMission(string path)
Create only enforce script mission, used for mission script reloading.
bool FormatRawConfigStringKeys(inout string value)
Changes localization key format to script-friendly format.
bool ClearJunctureEx(Man player, notnull EntityAI item)
proto native void UpdatePathgraphRegion(vector regionMin, vector regionMax)
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto bool CommandlineGetParam(string name, out string value)
Get command line parameter value.
proto native void DisconnectSession()
Disconnects from current multiplayer session.
proto native SoundWaveOnVehicle CreateSoundWaveOnObject(Object source, SoundObject soundObject, AbstractWave soundWave)
proto native void SendLogoutTime(Object player, int time)
Inform client about logout time (creates logout screen on specified client)
proto native void AdminLog(string text)
proto native bool IsMultiplayer()
proto native BiosUserManager GetUserManager()
proto native void ResetPPMask()
proto native void NightVissionLightParams(float lightIntensityMul, float noiseIntensity)
proto native owned string GetMainMenuWorld()
proto void ObjectGetType(Object obj, out string type)
void OnActivateMessage()
Called when recieving focus (windows)
proto native vector ObjectModelToWorld(Object obj, vector modelPos)
void UpdatePathgraphRegionByObject(Object object)
proto native vector GetPointerDirection()
Returns the direction where the mouse points, from the camera view.
proto native void OpenURL(string url)
proto native void ConfigGetTextArrayRaw(string path, out TStringArray values)
Get array of raw strings from config on path.
proto native bool IsBoxColliding(vector center, vector orientation, vector edgeLength, array< Object > excludeObjects, array< Object > collidedObjects=NULL)
Finds all objects that are in choosen oriented bounding box (OBB)
UIScriptedWindow CreateScriptedWindow(int id)
create custom window part
proto native UIManager GetUIManager()
void OnEvent(EventType eventTypeId, Param params)
Called when some system event occur.
proto void GetPlayerNetworkIDByIdentityID(int playerIdentityID, out int networkIdLowBits, out int networkIdHightBits)
returns player's network id from identity id in out parameters
proto native Weather GetWeather()
Returns weather controller object.
proto native void RequestRestart(int code)
Sets exit code and restart in the right moment.
proto native vector GetCurrentCameraPosition()
void OnDeactivateMessage()
Called when loosing focus (windows)
proto native void ChatMP(Man recipient, string text, string colorClass)
proto native void DumpInstances(bool csvFormatting)
Delevoper only: Dump all script allocations.
proto native Entity CreatePlayer(PlayerIdentity identity, string name, vector pos, float radius, string spec)
Assign player entity to client (in multiplayer)
proto native void RemoteObjectTreeCreate(Object obj)
RemoteObjectCreate - postponed registration of network object (and creation of remote object)....
proto GetServersResultRow GetHostData()
Gets the server data. (from client)
proto native void LogoutRequestTime()
Logout methods.
proto native void RPCSelf(Object target, int rpcType, notnull array< ref Param > params)
Not actually an RPC, as it will send it only to yourself.
proto native void ConfigGetFullPath(string path, out TStringArray full_path)
proto native bool HasInventoryJunctureDestination(Man player, notnull InventoryLocation dst)
proto native WorkspaceWidget GetWorkspace()
proto native float SurfaceY(float x, float z)
proto native void SaveProfile()
Saves profile on disk.
proto native bool IsBoxCollidingGeometry(vector center, vector orientation, vector edgeLength, int iPrimaryType, int iSecondaryType, array< Object > excludeObjects, array< Object > collidedObjects=NULL)
Finds all objects with geometry iType that are in choosen oriented bounding box (OBB)
proto native bool CanRespawnPlayer()
vector GetSurfaceOrientation(float x, float z)
Returns tilt of the ground on the given position in degrees, so you can use this value to rotate any ...
proto native NoiseSystem GetNoiseSystem()
proto native void SetProfileStringList(string name, TStringArray values)
Sets array of strings to profile variable.
string ConfigGetTextOut(string path)
Get string value from config on path.
TStringArray ListAvailableCharacters()
outputs array of all valid survivor class names
proto native void SetDiagDrawMode(int diag_draw_mode)
Set debug draw mode.
proto native void OverrideDOF(bool enable, float focusDistance, float focusLength, float focusLengthNear, float blur, float focusDepthOffset)
proto native void AbortMission()
Returns to main menu, leave world empty for using last mission world.
bool IsSurfaceFertile(string surface)
Checks if the surface is fertile.
proto native void StoreLoginData(ParamsWriteContext ctx)
Stores login userdata as parameters which are sent to server
proto native void GetObjectsAtPosition(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in circle "radius" around position "pos".
proto native bool ExecuteEnforceScript(string expression, string mainFnName)
Delevoper only: Executes Enforce Script expression, if there is an error, is printed into the script ...
proto native EntityAI GetEntityByPersitentID(int b1, int b2, int b3, int b4)
proto owned string GetHostName()
Gets the server name. (from client)
proto native void ObjectDeleteOnClient(Object obj)
proto native bool IsInPartyChat()
Returns whether user is currently in a voice party (currently only supported on xbox)
void OnProcessLifetimeChanged(int plmtype)
proto void ObjectGetDisplayName(Object obj, out string name)
proto native void GetObjectsAtPosition3D(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in sphere "radius" around position "pos".
proto native void PlayMission(string path)
Starts mission (equivalent for SQF playMission). You MUST use double slash \.
proto native bool IsPhysicsExtrapolationEnabled()
If physics extrapolation is enabled, always true on retail release builds.
proto native bool HasInventoryJunctureItem(notnull EntityAI item)
proto native void SetMainMenuWorld(string world)
proto native void LogoutRequestCancel()
proto native float GetTickTime()
Returns current time from start of the game.
proto native int ConfigGetType(string path)
Returns type of config value.
proto int GetTime()
returns mission time in milliseconds
proto native bool IsDebug()
proto native int GetVoiceLevel(Object player=null)
Get voice level of VoN (on both client and server) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
proto native vector GetScreenPosRelative(vector world_pos)
Transforms position in world to position in screen in percentage (0.0 - 1.0) as x,...
void OnMouseButtonRelease(int button)
Called when mouse button is released.
proto native void EnableMicCapture(bool enable)
Enable microphone to locally capture audio from user. Audio heard does NOT automatically get transmit...
ContentDLC is for query installed DLC (only as entitlement keys, not content)
static void InventoryReservationLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsInventoryReservationLogEnable()
static bool IsGameActive(bool sim)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
The class that will be instanced (moddable)
Manager class for managing Effect (EffectParticle, EffectSound)
static void Init()
Initialize the containers.
static void Cleanup()
Cleanup method to properly clean up the static data.
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but l...
ScriptInvoker Class provide list of callbacks usage:
Module containing compiled scripts.
Serialization general interface. Serializer API works with:
Manager class which handles Voice-over-network functionality while player is connected to a server.
static void Init()
Initializes VONManager, runs when user first connects to a server.
static void CleanupInstance()
Uninitializes VONManager, runs when user disconnects from server.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
proto native CGame GetGame()
array< string > TStringArray
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto int Randomize(int seed)
Sets the seed for the random number generator.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
string Get(int index)
Gets n-th character from string.
proto int ToLower()
Changes string to lowercase. Returns length.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.
proto native int Length()
Returns length of string.