GetInteriorPortalEntityArchetype
клиент GET_INTERIOR_PORTAL_ENTITY_ARCHETYPE
c
int GET_INTERIOR_PORTAL_ENTITY_ARCHETYPE(int interiorId, int portalIndex, int entityIndex);Примеры
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 archetype = GetInteriorPortalEntityArchetype(interiorId, portalIndex, i)
print("portal " .. portalIndex .." entity " .. i .. " archetype is: " .. archetype)
end
endПараметры
- interiorId: The target interior.
- portalIndex: Interior portal index.
- entityIndex: Portal entity index.
Возвращает
Portal entity archetype.
Страница собрана автоматически из native-decls/GetInteriorPortalEntityArchetype.md. Нашли ошибку — поправьте исходный файл.