|
Arma Reforger Script API
|
Public Member Functions | |
| override void | InitData (notnull SCR_EntityCatalogEntry entry) |
| Called by Catalog on creation. | |
Public Member Functions inherited from SCR_EntityCatalogSpawnerData | |
| void | SetEnabled (bool enable) |
| Set the enabled state of the entity in the spawner Changing this in runtime will allow/disallow certain entities to spawn for factions. | |
| int | GetEntityCount () |
| LocalizedString | GetOverwriteName () |
| Get Localized overwrite name Empty if no name is overwritten. | |
| bool | CanSpawnInSlot (SCR_EEntitySpawnerSlotType slotSize) |
| Check if entity can be spawned in slot of given size. | |
| SCR_EEntitySpawnerSlotType | GetValidSlotSizes () |
| Get flags of valid slot sizes. | |
| bool | HasRequiredRank (SCR_ECharacterRank rank) |
| Check if entity can be spawned by player with specific rank Will check if given rank is equal or greater then minimum required rank. | |
| SCR_ECharacterRank | GetMinimumRequiredRank () |
| Get the minimum required rank. | |
| int | GetSupplyCost () |
| Get supply cost of spawning Entity. | |
| ResourceName | GetRandomDefaultOrVariantPrefab () |
| Get random variant or default prefab. | |
| int | GetVariantDataList (notnull out array< SCR_SpawnerVariantData > variantData) |
| Get list of all variant data. | |
| int | GetVariantPrefabList (notnull out array< ResourceName > variantPrefabs) |
| Get list of all variant prefabs. | |
| SCR_SpawnerVariantData | GetVariantDataOfType (ESpawnerVariantType variantType) |
| Get specific variant data of type if it exists. | |
| ResourceName | GetVariantPrefabOfType (ESpawnerVariantType variantType) |
| Get specific variant Prefab of type if it exists. | |
Public Member Functions inherited from SCR_BaseEntityCatalogData | |
| bool | IsEnabled () |
| If is Enabled. | |
| void | PostInitData (notnull SCR_EntityCatalogEntry entry) |
| Called by Catalog after init data is called for all other entries. | |
Protected Attributes | |
| SCR_ECharacterRank | m_eMinimumRequiredRankOverride |
| int | m_iSupplyCostOverride |
Protected Attributes inherited from SCR_EntityCatalogSpawnerData | |
| ref SCR_UIInfo | m_UiInfo |
| SCR_EEntitySpawnerSlotType | m_eSlotTypes |
| int | m_iEntityCount |
| ref array< ref SCR_SpawnerVariantData > | m_aVariantData |
| ResourceName | m_sDefaultPrefab |
| SCR_ECharacterRank | m_eMinimumRequiredRank |
| int | m_iSupplyCost |
Protected Attributes inherited from SCR_BaseEntityCatalogData | |
| bool | m_bEnabled |
| override void SCR_EntityCatalogSpawnerOverrideData.InitData | ( | notnull SCR_EntityCatalogEntry | entry | ) |
Called by Catalog on creation.
Special init for data. To be overidden. Never called if Data is disabled
| [in] | entry | Entry the data is attached to |
Implements SCR_EntityCatalogSpawnerData.
|
protected |
|
protected |