Skip to content

GetInteriorPortalEntityRotation ​

клиент GET_INTERIOR_PORTAL_ENTITY_ROTATION

c
void GET_INTERIOR_PORTAL_ENTITY_ROTATION(int interiorId, int portalIndex, int entityIndex, float* rotX, float* rotY, float* rotZ, float* rotW);

Примеры ​

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, w = GetInteriorPortalEntityRotation(interiorId, portalIndex, i)
    print("portal " .. portalIndex .." entity " .. i .. " rotation is: " .. vec4(x, y, z, w))
  end
end

Параметры ​

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

Возвращает ​

Portal entity rotation.


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

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