Forge Server Actor
Overview
The actor addon is the server-side bridge for player identity and character state. It keeps Arma-facing actor snapshots in SQF while durable and hot actor state are owned by the Rust extension.
Actor records include UID, name, loadout, position, direction, stance, rank, life state, phone number, email, organization, and holster state.
Dependencies
forge_server_mainforge_server_commonforge_server_extensionat runtime for actor extension callsforge_server_phonefor new actor welcome email and messagesforge_server_bankfor new actor starting bank creditforge_client_actorfor response RPCs
Main Components
fnc_initActorStore.sqfinitializesActorModelandActorStore.ActorModelprovides defaults, player snapshot conversion, migration, and validation.ActorStorewraps extension hot-state calls and exposes event-facing actor operations.
Runtime Behavior
- Missing persistent actors can be created from live player snapshots.
- Newly created actors receive their starting loadout from mission
CfgStartingEquipment, plus a Field Commander job orientation email, two Field Commander text messages, and a$2,000starting credit in their bank account. - Hot actor reads are migrated and hydrated before use.
saveHotStatein the main addon snapshots and saves actor state on player disconnect and mission end.
Starting Equipment
Missions can include CfgStartingEquipment.hpp from description.ext to
override starter actor gear without recompiling the addon or extension.
class CfgStartingEquipment {
loadout[] = {
{},
{},
{},
{"U_BG_Guerrilla_6_1", {{"FirstAidKit", 2}}},
{},
{},
"H_Cap_blk_ION",
"",
{},
{"ItemMap", "ItemGPS", "ItemRadio", "ItemCompass", "ItemWatch", ""}
};
};
The Rust actor model no longer hardcodes a starter loadout. SQF supplies the mission-configured loadout when it creates a missing actor record.
Event Surface
The addon handles server events for actor init, get, set, multi-set, save, and remove requests, then replies to the requesting player through client actor RPCs.