623 {
626 trapPosXZ[1] = 0;
627
630 {
634 {
635 continue;
636 }
637
639 int slotId;
641 wheelEntity.GetInventory().GetCurrentAttachmentSlotInfo(slotId,
slotName);
644 {
645 continue
646 }
647
649 if (wheelEntity && wheelEntity.IsInherited(
CarWheel))
650 {
651 vector entPosXZ = wheelEntity.GetPosition();
652 entPosXZ[1] = 0;
654 {
655 return wheelEntity;
656 }
657 }
658 }
659
660 return null;
661 }
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.
vector GetPosition()
Get the world position of the Effect.