Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
playerlightmanager.c
Go to the documentation of this file.
5
6//WIP
8{
13
15 {
16 m_LightItemTarget = null;
18 m_Player = player;
19 }
20
21 // can be anything, as long as it has appropriate actions for handling lights, see Mich2001Helmet
23 {
24 m_LightItemTarget = new ActionTargetLighSource(object, null, -1, vector.Zero, -1);
26 }
27
29 {
30 m_LightItemTarget = new ActionTargetLighSource(object, null, -1, vector.Zero, -1);
31 m_LightItemTarget.m_Remove = true;
33 }
34
36 {
38 {
39 if ( !m_LightItemTarget.m_Remove )
40 {
42 }
43 else
44 {
46 }
47 }
48 }
49
54
56 {
58 }
59
64
65 void SelectLightSourceTarget(ActionTarget target) //should be ActionTarget?
66 {
67 int idx = m_ValidLightItems.Find(target);
69 }
70
75};
class ActionTargets ActionTarget
map m_Player
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static const vector Zero
Definition enconvert.c:123
void SetSelectedLightSourceIdx(int value)
void SelectLightSourceTarget(ActionTarget target)
ref array< ref ActionTarget > m_ValidLightItems
ref ActionTarget GetSelectedLightSourceTarget()
ActionTargetLighSource m_SelectedLightSource
ref ActionTargetLighSource m_LightItemTarget
void PlayerLightManager(PlayerBase player)
void UpdateLightSourceList()
int GetSelectedLightSourceIdx()
void AddLightSource(Object object)
void RemoveLightSource(Object object)
ref array< ref ActionTarget > GetLightSourceList()