Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
pluginvariables.c
Go to the documentation of this file.
1class PluginVariables extends PluginBase
2{
4 {
5 m_Id = 0;
7 // ("variable name")
8 RegisterVariable("varNote");
9 RegisterVariable("varColor");
10
11 }
12
14 {
15 }
16
18 {
19 m_Id++;
20 m_Variables.Set(m_Id,name);//REWORK.V maybe have 2 maps, one with key
21
22 }
23
24 int m_Id;
26
27 string GetName(int id)
28 {
29 return m_Variables.Get(id);
30 }
31
32 int GetID(string name)
33 {
34 return m_Variables.GetKeyByValue(name);
35 }
36}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Class PluginMessageManager provides some basic Message Distribution mechanics, if you get instance of...
Definition pluginbase.c:2
int GetID(string name)
string GetName(int id)
void PluginVariables()
ref map< int, string > m_Variables
void ~PluginVariables()
void RegisterVariable(string name)