DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

См. определение в файле ActionDeployObject.c строка 35

36 {
37 //Client
38 if (!g_Game.IsDedicatedServer())
39 {
40 if (player.IsPlacingLocal())
41 {
42 Hologram hologram = player.GetHologramLocal();
43 if (!hologram.IsColliding())
44 {
45 if (item.CanBePlaced(player, hologram.GetProjectionEntity().GetPosition()))
46 return true;
47 }
48 }
49 return false;
50 }
51 //Server
52 return true;
53 }
DayZGame g_Game
Определения DayZGame.c:3942
bool IsColliding()
Определения Hologram.c:1373
EntityAI GetProjectionEntity()
Определения Hologram.c:1332
Определения Hologram.c:2
override bool CanBePlaced(Man player, vector position)
Определения TentBase.c:968

Перекрестные ссылки ActionTarget, ItemBase::CanBePlaced(), g_Game, Hologram::GetProjectionEntity() и Hologram::IsColliding().