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

◆ ActionCondition()

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

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

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

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