614 {
617 trapPosXZ[1] = 0;
618
621 {
625 {
626 continue;
627 }
628
630 int slotId;
632 wheelEntity.GetInventory().GetCurrentAttachmentSlotInfo(slotId,
slotName);
635 {
636 continue
637 }
638
640 if (wheelEntity && wheelEntity.IsInherited(
CarWheel))
641 {
642 vector entPosXZ = wheelEntity.GetPosition();
643 entPosXZ[1] = 0;
645 {
646 return wheelEntity;
647 }
648 }
649 }
650
651 return null;
652 }
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.