DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionCraftRopeBelt.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
6 }
7};
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#STR_CraftRopeBelt";
19 }
20
22 {
25 }
26
27 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
28 {
29 return true;
30 }
31
32 override bool HasTarget()
33 {
34 return false;
35 }
36
37 override void OnFinishProgressServer( ActionData action_data )
38 {
39 EntityAI item_ingredient = action_data.m_MainItem;
40 EntityAI belt;
41
42 belt = action_data.m_Player.SpawnEntityOnGroundPos("RopeBelt", action_data.m_Player.GetPosition());
43 action_data.m_MainItem.Delete();
44
45 MiscGameplayFunctions.TransferItemProperties(item_ingredient, belt);
46
47 }
48};
protected float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
protected string m_Text
Definition ActionBase.c:49
protected bool m_FullBody
Definition ActionBase.c:52
protected int m_StanceMask
Definition ActionBase.c:53
class ActionTargets ActionTarget
protected ActionData m_ActionData
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
ItemBase m_MainItem
Definition ActionBase.c:28
PlayerBase m_Player
Definition ActionBase.c:33
ref CABase m_ActionComponent
Definition ActionBase.c:30
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602