Skip to content

GetInteriorPortalEntityPosition ​

клиент GET_INTERIOR_PORTAL_ENTITY_POSITION

c
void GET_INTERIOR_PORTAL_ENTITY_POSITION(int interiorId, int portalIndex, int entityIndex, float* posX, float* posY, float* posZ);

Примеры ​

lua
local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
local portalIndex = 0

if interiorId ~= 0 then
  local count = GetInteriorPortalEntityCount(interiorId, portalIndex)
  for i=0, count-1 do
    local x, y, z = GetInteriorPortalEntityPosition(interiorId, portalIndex, i)
    print("portal " .. portalIndex .." entity " .. i .. " position is: " .. vec3(x, y, z))
  end
end

Параметры ​

  • interiorId: The target interior.
  • portalIndex: Interior portal index.
  • entityIndex: Portal entity index.

Возвращает ​

Portal entity position.


Страница собрана автоматически из native-decls/GetInteriorPortalEntityPosition.md. Нашли ошибку — поправьте исходный файл.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.