624 {
627 trapPosXZ[1] = 0;
628
631 {
635 {
636 continue;
637 }
638
640 int slotId;
642 wheelEntity.GetInventory().GetCurrentAttachmentSlotInfo(slotId,
slotName);
645 {
646 continue
647 }
648
650 if (wheelEntity && wheelEntity.IsInherited(
CarWheel))
651 {
652 vector entPosXZ = wheelEntity.GetPosition();
653 entPosXZ[1] = 0;
655 {
656 return wheelEntity;
657 }
658 }
659 }
660
661 return null;
662 }
PlayerSpawnPreset slotName
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.
script counterpart to engine's class Inventory
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
class JsonUndergroundAreaTriggerData GetPosition