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

◆ ActionCondition()

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

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

31 {
32 //Client
33 if (!GetGame().IsDedicatedServer())
34 {
35 if (player.IsPlacingLocal())
36 {
37 if (!player.GetHologramLocal().IsColliding())
38 {
39 if (item.CanBePlaced(player, player.GetHologramLocal().GetProjectionEntity().GetPosition()))
40 {
41 return true;
42 }
43 }
44 }
45 return false;
46 }
47 //Server
48 return true;
49 }
override bool CanBePlaced(Man player, vector position)
Определения TentBase.c:947
proto native CGame GetGame()

Перекрестные ссылки ActionTarget, ItemBase::CanBePlaced() и GetGame().