5static int GAME_STORAGE_VERSION = 142;
10 int m_DebugMonitorEnabled;
12 ScriptModule GameScript;
15 private ref array<ref Param> m_ParamCache;
18 ref AnalyticsManagerServer m_AnalyticsManagerServer;
19 ref AnalyticsManagerClient m_AnalyticsManagerClient;
20 ref MenuDefaultCharacterData m_CharacterData;
23 ref array<ComponentEnergyManager> m_EnergyManagerArray;
24 void EnableEMPlugs(
bool enable)
26 for (
int i = 0; i <
g_Game.m_EnergyManagerArray.Count(); ++i)
28 if (
g_Game.m_EnergyManagerArray[i])
29 g_Game.m_EnergyManagerArray[i].SetDebugPlugs(enable);
40 m_ParamCache =
new array<ref Param>;
41 m_ParamCache.Insert(null);
44 m_AnalyticsManagerServer =
new AnalyticsManagerServer;
45 m_AnalyticsManagerClient =
new AnalyticsManagerClient;
50 StorageVersion(GAME_STORAGE_VERSION);
53 m_EnergyManagerArray =
new array<ComponentEnergyManager>;
58 SEffectManager.Init();
63 SEffectManager.InitServer();
68 SEffectManager.InitServer();
75 SEffectManager.Cleanup();
76 AmmoEffects.Cleanup();
77 VONManager.CleanupInstance();
84 proto native WorkspaceWidget GetWorkspace();
85 proto native WorkspaceWidget GetLoadingWorkspace();
93 void OnEvent(
EventType eventTypeId, Param params)
98 void OnProcessLifetimeChanged(
int plmtype)
103 void OnLicenseChanged()
149 void OnUpdate(
bool doSim,
float timeslice)
197 UIScriptedMenu CreateScriptedMenu(
int id ) { }
202 UIScriptedWindow CreateScriptedWindow(
int id ) { }
217 proto native
void RequestExit(
int code );
222 proto native
void RequestRestart(
int code);
227 proto native
bool IsAppActive();
232 proto
bool GetHostAddress( out
string address, out
int port );
237 proto owned
string GetHostName();
242 proto GetServersResultRow GetHostData();
251 proto native
int Connect( UIScriptedMenu parent ,
string IpAddress,
int port,
string password );
256 proto native
int ConnectLastSession( UIScriptedMenu parent ,
int selectedCharacter = -1 );
260 proto native
void DisconnectSession();
265 proto native
void DisconnectSessionForce();
278 proto native
void GetProfileStringList(
string name, out
TStringArray values);
286 proto
bool GetProfileString(
string name, out
string value);
300 proto native
void SetProfileString(
string name,
string value);
305 proto native
void SaveProfile();
311 proto
void GetPlayerName(out
string name);
318 proto
void GetPlayerNameShort(
int maxLength, out
string name);
324 proto native
void SetPlayerName(
string name);
331 proto native Entity CreatePlayer(PlayerIdentity identity,
string name, vector pos,
float radius,
string spec);
339 proto native
void SelectPlayer(PlayerIdentity identity,
Object player);
348 proto
void GetPlayerNetworkIDByIdentityID(
int playerIdentityID, out
int networkIdLowBits, out
int networkIdHightBits );
355 proto native
Object GetObjectByNetworkId(
int networkIdLowBits,
int networkIdHighBits );
362 proto native
bool RegisterNetworkStaticObject(
Object object);
370 proto native
bool IsNetworkInputBufferFull();
378 proto native
void SelectSpectator(PlayerIdentity identity,
string spectatorObjType, vector position);
384 proto native
void UpdateSpectatorPosition(vector position);
392 proto native
void SendLogoutTime(
Object player,
int time);
398 proto native
void DisconnectPlayer(PlayerIdentity identity,
string uid =
"");
405 proto native
void AddToReconnectCache(PlayerIdentity identity);
412 proto native
void RemoveFromReconnectCache(
string uid);
418 proto native
void ClearReconnectCache();
424 proto native
void StorageVersion(
int iVersion );
429 proto native
int LoadVersion();
434 proto native
int SaveVersion();
439 proto native
float GetDayTime();
448 proto
bool ConfigGetText(
string path, out
string value);
457 proto
bool ConfigGetTextRaw(
string path, out
string value);
464 string ConfigGetTextOut(
string path)
467 ConfigGetText(
path, ret_s);
476 bool FormatRawConfigStringKeys(inout
string value)
479 ret = value.Replace(
"$STR_",
"#STR_");
492 string cfg =
"CfgVehicles " +
class_name +
" model";
494 if (
g_Game.ConfigGetText(cfg, model_path) )
496 int to_substring_end = model_path.Length() - 4;
497 int to_substring_start = 0;
500 for (
int i = to_substring_end; i > 0; i--)
502 string sign = model_path.Get(i);
505 to_substring_start = i + 1;
510 string model_name = model_path.Substring(to_substring_start, to_substring_end - to_substring_start);
515 return "UNKNOWN_P3D_FILE";
523 proto native
float ConfigGetFloat(
string path);
531 proto native vector ConfigGetVector(
string path);
538 proto native
int ConfigGetInt(
string path);
545 proto native
int ConfigGetType(
string path);
570 proto native
void ConfigGetTextArrayRaw(
string path, out
TStringArray values);
577 proto native
void ConfigGetFloatArray(
string path, out
TFloatArray values);
584 proto native
void ConfigGetIntArray(
string path, out
TIntArray values);
593 proto
bool ConfigGetChildName(
string path,
int index, out
string name);
601 proto
bool ConfigGetBaseName(
string path, out
string base_name);
610 proto native
int ConfigGetChildrenCount(
string path);
611 proto native
bool ConfigIsExisting(
string path);
613 proto native
void ConfigGetFullPath(
string path, out
TStringArray full_path);
616 proto native
void GetModInfos(notnull out array<ref ModInfo> modArray);
617 proto native
bool GetModToBeReported();
629 string return_path =
"";
630 int count = array_path.Count();
632 for (
int i = 0; i < count; i++)
634 return_path += array_path.Get(i);
660 proto
bool CommandlineGetParam(
string name, out
string value);
662 proto native
void CopyToClipboard(
string text);
663 proto
void CopyFromClipboard(out
string text);
665 proto native
void BeginOptionsVideo();
666 proto native
void EndOptionsVideo();
668 proto native
void AdminLog(
string text);
677 proto native
bool PreloadObject(
string type,
float distance );
679 proto native
Object CreateStaticObjectUsingP3D(
string p3dFilename, vector position, vector orientation,
float scale = 1.0,
bool createLocal =
false);
690 proto native
Object CreateObject(
string type, vector pos,
bool create_local =
false,
bool init_ai =
false,
bool create_physics =
true );
691 proto native SoundOnVehicle CreateSoundOnObject(
Object source,
string sound_name,
float distance,
bool looped,
bool create_local =
false);
702 proto native
Object CreateObjectEx(
string type, vector pos,
int iFlags,
int iRotation =
RF_DEFAULT );
704 proto native
void ObjectDelete(
Object obj );
705 proto native
void ObjectDeleteOnClient(
Object obj );
706 proto native
void RemoteObjectDelete(
Object obj );
707 proto native
void RemoteObjectTreeDelete(
Object obj );
708 proto native
void RemoteObjectCreate(
Object obj );
709 proto native
void RemoteObjectTreeCreate(
Object obj );
710 proto native
int ObjectRelease(
Object obj );
711 proto
void ObjectGetType(
Object obj, out
string type );
712 proto
void ObjectGetDisplayName(
Object obj, out
string name );
713 proto native vector ObjectGetSelectionPosition(
Object obj,
string name);
714 proto native vector ObjectGetSelectionPositionLS(
Object obj,
string name);
715 proto native vector ObjectGetSelectionPositionMS(
Object obj,
string name);
716 proto native vector ObjectGetSelectionPositionWS(
Object obj,
string name);
717 proto native vector ObjectModelToWorld(
Object obj, vector modelPos);
718 proto native vector ObjectWorldToModel(
Object obj, vector worldPos);
720 proto native
bool IsObjectAccesible(
EntityAI item, Man player);
723 proto native
void ReloadShape(
Object obj);
727 proto native Input GetInput();
730 proto native vector GetCurrentCameraPosition();
731 proto native vector GetCurrentCameraDirection();
734 proto native AbstractSoundScene GetSoundScene();
737 proto native NoiseSystem GetNoiseSystem();
740 proto native
bool AddInventoryJuncture(Man player, notnull
EntityAI item, InventoryLocation dst,
bool test_dst_occupancy,
int timeout_ms, Managed userData = null);
742 bool AddInventoryJunctureEx(Man player, notnull
EntityAI item, InventoryLocation dst,
bool test_dst_occupancy,
int timeout_ms, Managed userData = null)
744 bool result = AddInventoryJuncture(player, item, dst, test_dst_occupancy, timeout_ms, userData);
745 #ifdef ENABLE_LOGGING
746 if ( LogManager.IsInventoryReservationLogEnable() )
748 Debug.InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp() +
" result: " + result +
" item:" + item +
" dst: " + InventoryLocation.DumpToStringNullSafe(dst),
"n/a" ,
"n/a",
"AddInventoryJuncture",player.ToString() );
756 proto native
bool HasInventoryJunctureItem(notnull
EntityAI item);
757 proto native
bool HasInventoryJuncture(Man player, notnull
EntityAI item);
758 proto native
bool HasInventoryJunctureDestination(Man player, notnull InventoryLocation dst);
759 proto native
bool AddActionJuncture(Man player, notnull
EntityAI item,
int timeout_ms, Managed userData = null);
760 proto native
bool ExtendActionJuncture(Man player, notnull
EntityAI item,
int timeout_ms);
761 proto native
bool ClearJuncture(Man player, notnull
EntityAI item);
763 bool ClearJunctureEx(Man player, notnull
EntityAI item)
765 #ifdef ENABLE_LOGGING
766 if ( LogManager.IsInventoryReservationLogEnable() )
768 Debug.InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp()+
" item:" + item,
"n/a" ,
"n/a",
"ClearJuncture",player.ToString() );
771 return ClearJuncture( player, item);
776 proto native
bool ExecuteEnforceScript(
string expression,
string mainFnName);
778 proto native
void DumpInstances(
bool csvFormatting);
780 proto native
bool ScriptTest();
782 proto native
void GetDiagModeNames(out
TStringArray diag_names);
784 proto native
void SetDiagModeEnable(
int diag_mode,
bool enabled);
786 proto native
bool GetDiagModeEnable(
int diag_mode);
789 proto native
void GetDiagDrawModeNames(out
TStringArray diag_names);
791 proto native
void SetDiagDrawMode(
int diag_draw_mode);
793 proto native
int GetDiagDrawMode();
796 proto native
bool IsPhysicsExtrapolationEnabled();
802 proto native
int GizmoGetCount();
807 [
Obsolete(
"Use GizmoApi.GetInstance")]
808 proto native Class GizmoGetInstance(
int index);
813 [
Obsolete(
"Use GizmoApi.GetTracker")]
814 proto native Managed GizmoGetTracker(
int index);
819 [
Obsolete(
"Use GizmoApi.FindByTracker")]
820 proto native
int GizmoFindByTracker(Managed tracker);
826 proto native
void GizmoClear(
int index);
831 [
Obsolete(
"Use GizmoApi.DeselectAll")]
832 proto native
void GizmoClearAll();
839 [
Obsolete(
"Use GizmoApi.SelectObject")]
840 proto native
void GizmoSelectObject(
Object object);
849 [
Obsolete(
"Use GizmoApi.SelectPhysics")]
850 proto native
void GizmoSelectPhysics(
Physics physics);
859 [
Obsolete(
"Use GizmoApi.SelectUser")]
860 proto native
void GizmoSelectUser(Managed instance);
866 proto native
float GetFps();
872 proto native
float GetLastFPS();
879 proto native
float GetAvgFPS(
int nFrames = 64);
886 proto native
float GetMinFPS(
int nFrames = 64);
893 proto native
float GetMaxFPS(
int nFrames = 64);
902 void GetFPSStats(out
float min, out
float max, out
float avg,
int nFrames = 64)
904 min = GetMinFPS(nFrames);
905 max = GetMaxFPS(nFrames);
906 avg = GetAvgFPS(nFrames);
913 proto native
float GetTickTime();
915 proto
void GetInventoryItemSize(InventoryItem item, out
int width, out
int height);
922 proto native
void GetObjectsAtPosition(vector pos,
float radius, out array<Object> objects, out array<CargoBase> proxyCargos);
929 proto native
void GetObjectsAtPosition3D(vector pos,
float radius, out array<Object> objects, out array<CargoBase> proxyCargos);
930 proto native World GetWorld();
931 proto
void GetWorldName( out
string world_name );
933 string GetWorldName()
936 g_Game.GetWorldName(world_name);
940 proto native
bool VerifyWorldOwnership(
string sWorldName );
941 proto native
bool GoBuyWorldDLC(
string sWorldName );
943 proto
void FormatString(
string format,
string params[], out
string output);
945 proto native UIManager GetUIManager();
947 proto native
void GetPlayers( out array<Man> players );
948 DayZPlayer GetPlayerByIndex(
int index = 0)
950 array<Man> players();
952 if (index >= players.Count())
954 return DayZPlayer.Cast(players[index]);
961 proto native vector GetPointerDirection();
963 proto native vector GetWorldDirectionFromScreen(vector world_pos);
965 proto native vector GetScreenPos(vector world_pos);
967 proto native vector GetScreenPosRelative(vector world_pos);
970 proto native MenuData GetMenuData();
1013 proto native
void RPC(
Object target,
int rpcType, notnull array<ref Param> params,
bool guaranteed,PlayerIdentity recipient = null);
1015 proto native
void RPCSingleParam(
Object target,
int rpc_type, Param param,
bool guaranteed, PlayerIdentity recipient = null);
1017 proto native
void RPCSelf(
Object target,
int rpcType, notnull array<ref Param> params);
1018 proto native
void RPCSelfSingleParam(
Object target,
int rpcType, Param param);
1021 proto native
void ProfilerStart(
string name);
1023 proto native
void ProfilerStop(
string name);
1035 proto native
void Chat(
string text,
string colorClass);
1036 proto native
void ChatMP(Man recipient,
string text,
string colorClass);
1037 proto native
void ChatPlayer(
string text);
1043 proto native
void MutePlayer(
string muteUID,
string playerUID,
bool mute);
1050 proto native
void MuteAllPlayers(
string listenerId,
bool mute);
1057 proto native
void EnableVoN(
Object player,
bool enable);
1065 proto native
void SetVoiceEffect(
Object player,
int effect,
bool enable);
1071 proto native
void SetVoiceLevel(
int level);
1076 proto native
int GetVoiceLevel(
Object player = null);
1082 proto native
void EnableMicCapture(
bool enable);
1087 proto native
bool IsMicCapturing();
1092 proto native
bool IsInPartyChat();
1095 proto native Mission GetMission();
1096 proto native
void SetMission(Mission
mission);
1100 proto native
void StartRandomCutscene(
string world);
1102 proto native
void PlayMission(
string path);
1149 m_DebugMonitorEnabled = value;
1154 return IsServer() && m_DebugMonitorEnabled;
1163 proto native
float SurfaceRoadY(
float x,
float z, RoadSurfaceDetection rsd = RoadSurfaceDetection.LEGACY);
1194 float high = -9999999;
1195 float low = 99999999;
1197 for (
int i = 0; i < positions.Count(); i++)
1199 vector pos = positions.Get(i);
1219 vector angles = normal.VectorToAngles();
1220 angles[1] = angles[1]+270;
1223 if (angles ==
"0 540 0")
1231 return ConfigGetInt(
"CfgSurfaces " + surface +
" isDigable");
1236 return ConfigGetText(
"CfgSurfaces " + surface +
" digPile", result);
1242 return ConfigGetInt(
"CfgSurfaces " + surface +
" isFertile");
1247 if (liquidType == -1)
1250 if (liquidType == 0)
1276 vector pos =
object.GetPosition();
1278 float radius =
object.ClippingInfo ( min_max );
1279 vector min =
Vector ( pos[0] - radius, pos[1], pos[2] - radius );
1280 vector max =
Vector ( pos[0] + radius, pos[1], pos[2] + radius );
1354 proto native
void OverrideDOF(
bool enable,
float focusDistance,
float focusLength,
float focusLengthNear,
float blur,
float focusDepthOffset);
1356 proto native
void AddPPMask(
float ndcX,
float ndcY,
float ndcRadius,
float ndcBlur);
1412 bool IsKindOf(
string cfg_class_name,
string cfg_parent_name)
1416 ConfigGetFullPath(
"CfgVehicles " + cfg_class_name, full_path);
1418 if (full_path.Count() == 0)
1420 ConfigGetFullPath(
"CfgAmmo " + cfg_class_name, full_path);
1423 if (full_path.Count() == 0)
1425 ConfigGetFullPath(
"CfgMagazines " + cfg_class_name, full_path);
1428 if (full_path.Count() == 0)
1430 ConfigGetFullPath(
"cfgWeapons " + cfg_class_name, full_path);
1433 if (full_path.Count() == 0)
1435 ConfigGetFullPath(
"CfgNonAIVehicles " + cfg_class_name, full_path);
1438 cfg_parent_name.ToLower();
1439 int nFullPath = full_path.Count();
1440 for (
int i = 0; i < nFullPath; i++)
1442 string tmp = full_path.Get(i);
1444 if (tmp == cfg_parent_name)
1468 ConfigGetObjectFullPath(
object, full_path);
1470 cfg_parent_name.ToLower();
1472 int nFullPath = full_path.Count();
1473 for (
int i = 0; i < nFullPath; i++)
1475 string tmp = full_path.Get(i);
1477 if (tmp == cfg_parent_name)
1496 int class_count = ConfigGetChildrenCount(config_path);
1497 for (
int index = 0; index < class_count; index++)
1499 string found_class =
"";
1500 ConfigGetChildName(config_path, index, found_class);
1501 if (found_class == searched_member)
1565 return (
g_Game.GetMissionState() == DayZGame.MISSION_STATE_MAINMENU);
1573 if (!m_CharacterData)
1576 if (fill_data && !
g_Game.IsDedicatedServer())
1577 GetMenuData().RequestGetDefaultCharacterData();
1579 return m_CharacterData;
1585 return m_AnalyticsManagerServer;
1590 return m_AnalyticsManagerClient;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Class that holds parameters to feed into CGame.IsBoxCollidingGeometryProxy.
proto native float SurfaceGetSeaWaveCurrent()
Get current sea wave height.
float GetHighestSurfaceYDifference(array< vector > positions)
Returns the largest height difference between the given positions.
proto void SurfaceUnderObjectByBone(notnull Object object, int boneType, out string type, out int liquidType)
proto native void RestartMission()
proto native float GetWaterSurfaceHeightNoFakeWave(vector posWS)
Get the nearest water or object surface under a point, ignoring land (without the fake wave that's on...
proto native void ResetPPMask()
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).
void SurfaceUnderObjectByBoneCorrectedLiquid(notnull Object object, int boneType, out string type, out int liquidType)
override void OnActivateMessage()
proto native float SurfaceY(float x, float z)
override void OnDeactivateMessage()
proto native float SurfaceGetSeaLevelMax()
proto native void AddPPMask(float ndcX, float ndcY, float ndcRadius, float ndcBlur)
proto native float SurfaceGetSeaLevel()
proto native float GetWaterDepth(vector posWS)
proto native void GetPlayerIndentities(out array< PlayerIdentity > identities)
string CreateDefaultPlayer()
returns class name of first valid survivor (TODO address confusing naming?)
override void OnPostUpdate(bool doSim, float timeslice)
override void OnDeviceReset()
proto native bool IsBoxCollidingGeometryProxy(notnull BoxCollidingParams params, array< Object > excludeObjects, array< ref BoxCollidingResult > collidedObjects=NULL)
override void OnAfterCreate()
proto native bool IsMultiplayer()
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)
proto native float GetWaterSurfaceHeightWithFakeWave(vector posWS)
Get the nearest water or object surface under a point, ignoring land (with the fake wave that's on to...
proto native bool SurfaceIsSea(float x, float z)
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
void SetDebugMonitorEnabled(int value)
proto native BiosUserManager GetUserManager()
proto native bool IsDebug()
override void OnKeyPress(int key)
proto native float SurfaceGetSeaWaveMax()
Get max sea wave height.
bool IsSurfaceFertile(string surface)
Checks if the surface is fertile.
ScriptCallQueue GetCallQueue(int call_category)
int CorrectLiquidType(int liquidType)
proto native vector SurfaceGetNormal(float x, float z)
proto native void SetMainMenuWorld(string world)
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).
proto float SurfaceGetType3D(float x, float y, float z, out string type)
Y input: Maximum Y to trace down from; Returns: Y position the surface was found.
bool ObjectIsKindOf(Object object, string cfg_parent_name)
Returns is object inherited from parent class name.
proto native void UpdatePathgraphRegion(vector regionMin, vector regionMax)
proto native void InitDamageEffects(Object effect)
Initialization of damage effects.
proto native bool IsServer()
bool IsSurfaceDigable(string surface)
Checks if the surface is digable.
void UpdatePathgraphRegionByObject(Object object)
bool IsMissionMainMenu()
Returns true when current mission is Main Menu.
proto float SurfaceGetType(float x, float z, out string type)
Returns: Y position the surface was found.
proto native void OverrideInventoryLights(vector diffuse, vector ambient, vector ground, vector dir)
proto native void LogoutRequestTime()
Logout methods.
proto native bool SurfaceIsPond(float x, float z)
proto native void LogoutRequestCancel()
override void OnKeyRelease(int key)
proto native float SurfaceGetSeaLevelMin()
ScriptInvoker GetUpdateQueue(int call_category)
proto native owned string GetMainMenuWorld()
override void OnMouseButtonRelease(int button)
proto native void OverrideDOF(bool enable, float focusDistance, float focusLength, float focusLengthNear, float blur, float focusDepthOffset)
override void OnMouseButtonPress(int button)
AnalyticsManagerServer GetAnalyticsServer()
proto native Weather GetWeather()
Returns weather controller object.
proto native bool GetSurface(SurfaceDetectionParameters params, SurfaceDetectionResult result)
API for surface detection.
TimerQueue GetTimerQueue(int call_category)
proto native bool IsDedicatedServer()
Robust check which is preferred than the above, as it is valid much sooner.
bool GetSurfaceDigPile(string surface, out string result)
proto native float SurfaceRoadY3D(float x, float y, float z, RoadSurfaceDetection rsd)
proto int GetTime()
returns mission time in milliseconds
proto native void NightVissionLightParams(float lightIntensityMul, float noiseIntensity)
proto native bool IsClient()
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native void RespawnPlayer()
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 ...
native void CreateMission(string path)
Create only enforce script mission, used for mission script reloading.
AnalyticsManagerClient GetAnalyticsClient()
override bool OnInitialize()
void SurfaceUnderObjectCorrectedLiquid(notnull Object object, out string type, out int liquidType)
proto native float SurfaceGetNoiseMultiplier(Object directHit, vector pos, int componentIndex)
proto native EntityAI GetEntityByPersitentID(int b1, int b2, int b3, int b4)
proto native void OpenURL(string url)
override void OnRPC(PlayerIdentity sender, Object target, int rpc_type, ParamsReadContext ctx)
proto native int GetLogoutAfterCancelTimeout()
string CreateRandomPlayer()
returns class name of random survivor (TODO address confusing naming?)
static bool IsDigitalCopy()
proto native void SetLoginTimerFinished()
int ConfigFindClassIndex(string config_path, string searched_member)
proto native void SetEVUser(float value)
Sets custom camera camera EV. range: -50.0..50.0? //TODO.
void SurfaceUnderObjectExCorrectedLiquid(notnull Object object, out string type, out string impact, out int liquidType)
proto native void AbortMission()
Returns to main menu, leave world empty for using last mission world.
proto native int ServerConfigGetInt(string name)
Server config parsing. Returns 0 if not found.
proto void SurfaceUnderObjectEx(notnull Object object, out string type, out string impact, out int liquidType)
proto native ContentDLC GetContentDLCService()
Return DLC service (service for entitlement keys for unlock content).
ScriptInvoker GetPostUpdateQueue(int call_category)
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
TStringArray ListAvailableCharacters()
outputs array of all valid survivor class names
proto native bool CanRespawnPlayer()
ContentDLC is for query installed DLC (only as entitlement keys, not content).
static bool IsGameActive(bool sim)
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but l...
ScriptInvoker Class provide list of callbacks usage:
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsReadContext
Serializer ParamsWriteContext
array< float > TFloatArray
array< string > TStringArray
void Obsolete(string msg="")
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
void SoundObject(SoundParams soundParams)
class OptionSelectorMultistate extends OptionSelector class_name
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor).