Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ToggleDamageEditorAttribute.c
Go to the documentation of this file.
1// Script File SCR_ToggleDamageEditorAttribute
4{
5 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6 {
7 //WIP
8 #ifndef WORKBENCH
9 return null;
10 #endif
11
13 if (!editableEntity) return null;
14
15 IEntity owner = editableEntity.GetOwner();
16 if (!owner) return null;
18
19 if (!damageComponent) return null;
20
22 }
23 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
24 {
25 if (!var) return;
27
28 IEntity owner = editableEntity.GetOwner();
29 if (!owner) return;
31 if (!damageComponent) return;
32
33 Print("Set Damage enabled: " + var.GetInt());
34 }
35};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
proto external Managed FindComponent(typename typeName)
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateInt(int value)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.