Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actionuserangefinder.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousTime( 1.0 );
6 }
7};
8
11{
13 {
15 m_CommandUID = DayZPlayerConstants.CMD_GESTUREFB_LOOKOPTICS;
16 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW;
17 m_Text = "#use_range_finder";
18 }
19
25
26 override bool IsFullBody(PlayerBase player)
27 {
28 return true;
29 }
30
31 override bool HasTarget()
32 {
33 return false;
34 }
35
36 override bool ActionCondition ( PlayerBase player, ActionTarget target, ItemBase item )
37 {
38 return item.GetCompEM().CanWork() && Rangefinder.Cast( item ).IsInOptics();
39 }
40}
class ActionTargets ActionTarget
ActionData m_ActionData
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
float m_SpecialtyWeight
Definition actionbase.c:83
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
override void CreateActionComponent()
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool IsFullBody(PlayerBase player)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602