Development - mokdevel/ArmaReforger_snippets GitHub Wiki

Setup your first world

This is really the minimum to be able to do some development:

Find prefabs and drop them in to your world

  • FactionManager_USxUSSR
  • GameMode_Plain

Save

Additionally add these. Especially if using PeerTool

  • LoadoutManager_USxUSSR
  • SpawnPoint_US.et
  • SpawnPoint_USSR.et

For AI to function properly

  • PerceptionManager.et
  • SCR_AIWorld.et - Here you need to add the proper navmeshes. Click on the AIWorld entity in the Object Properties you'll see three NavmeshWorldComponents for the world (examples for Arland).
    • In Navmesh Project Soldier, press set class on Navmesh Files Config and select GM_Arland.nmm (ArmaReforger\worlds\GameMaster\Navmeshes\*)
    • In Navmesh Project LowRes, press set class on Navmesh Files Config and select LowResArland.nmm (ArmaReforger\worlds\MP\Navmeshes\*)

Navmesh

Create your own entity from a prefab

  • Select a prefab
  • Duplicate to your project
  • Create a script MyEntity.c
class MyEntityClass : GenericEntityClass{}
class MyEntity : GenericEntity
{
<code>
}
  • Save and compile
  • Open your prefab
    • Right click on prefab -> edit prefab. This will open the prefab in World Editor
    • On the right you will find Object Properties. Right click on the current classname (red cube) and select your new class MyEntity.

Misc Links

⚠️ **GitHub.com Fallback** ⚠️