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

◆ IsIgnoredObject()

bool map::IsIgnoredObject ( Object o)
inlineprotected

If the player can't interact (hint: collide) with the object, then it is ignored

Ignore any player that is currently in this vehicle

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

782 {
783 if (!o)
784 return false;
785
789 if (!interacts)
790 {
791 return true;
792 }
793
795 if (Class.CastTo(player, o))
796 {
798 HumanCommandVehicle hcv = player.GetCommand_Vehicle();
799 if (hcv && hcv.GetTransport() == this)
800 {
801 return true;
802 }
803 }
804
805 EntityAI e = EntityAI.Cast(o);
806 // CanBeSkinned means it is a dead entity which should not block the door
807 return ( ( e && (e.IsZombie() || e.IsHologram()) ) || o.CanBeSkinned() || o.IsBush() || o.IsTree() );
808 }
Определения Transport.c:70
proto native bool dGetInteractionLayer(notnull IEntity worldEntity, int mask1, int mask2)
proto native int dBodyGetInteractionLayer(notnull IEntity ent)