DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionUncoverHeadBase
+ Граф наследования:ActionUncoverHeadBase:

Закрытые члены

void UncoverHead (PlayerBase target, PlayerBase source)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Подробное описание

Методы

◆ UncoverHead()

void UncoverHead ( PlayerBase target,
PlayerBase source )
inlineprivate
13 {
15 if (Class.CastTo(attachment, target.GetInventory().FindAttachment(InventorySlots.HEADGEAR)) && attachment.GetType() == "BurlapSackCover")
16 {
18 if (!source.GetHumanInventory().GetEntityInHands())
19 {
20 new_item = ItemBase.Cast(HumanInventory.Cast(source.GetInventory()).CreateInHands("BurlapSack"));
21 }
22 else
23 {
24 if (!Class.CastTo(new_item,source.GetInventory().CreateInInventory("BurlapSack")))//full inventory
25 {
26 vector m4[4];
27 source.GetTransformWS(m4);
29 target_gnd.SetGround(null, m4);
31 }
32 }
33
34 if (new_item)
35 {
36 MiscGameplayFunctions.TransferItemProperties(attachment,new_item,true,false,true);
37 attachment.Delete();
38 }
39 }
40 }
const int ECE_IN_INVENTORY
Definition CentralEconomy.c:36
const int RF_DEFAULT
Definition CentralEconomy.c:65
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
script counterpart to engine's class Inventory
Definition Inventory.c:79
static proto native EntityAI LocationCreateEntity(notnull InventoryLocation inv_loc, string type, int iSetupFlags, int iRotation)
creates new item directly at location
inventory for plain man/human
Definition HumanInventory.c:10
proto native EntityAI CreateInHands(string typeName)
creates new entity in hands
InventoryLocation.
Definition InventoryLocation.c:29
provides access to slot configuration
Definition InventorySlots.c:6
Definition InventoryItem.c:731
Definition EntityAI.c:95
Definition EnConvert.c:106
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), HumanInventory::CreateInHands(), ECE_IN_INVENTORY, GameInventory::LocationCreateEntity() и RF_DEFAULT.

Используется в OnFinishProgressServer() и ActionUncoverHeadTarget::OnFinishProgressServer().


Объявления и описания членов класса находятся в файле: