Skip to content

Instantly share code, notes, and snippets.

@Walthzer
Last active May 23, 2022 15:01
Show Gist options
  • Select an option

  • Save Walthzer/1f954d3340ec7d5cf5546918c1cb0b0a to your computer and use it in GitHub Desktop.

Select an option

Save Walthzer/1f954d3340ec7d5cf5546918c1cb0b0a to your computer and use it in GitHub Desktop.

CONSIDER THIS DEPRECIATED

This gist gives the basics of adding an editable entity, it doesn't make full use of the all avialibe plugins as they seem broken for the author! But its a perfect copy of the basegames setup and should work with those plugins if/when they work in the future.

In order to add any entity to the GM Entity List you must first create Placeable version:

  • Select the prefabs you want to make placeable
  • go to Plugins -> In-game Editor -> Create/Update Selected Editable Prefabs

This plugin will create a new base folder EditablePrefabs and mirror the file structure to a new prefabs Labeld with a E_ prefix.

For every E_ prefab:

  • Add a SCR_EditableEntityComponent
  • Under flags check PLACEABLE
  • Under Visualisation set the UI Info class to SCR_EditableEntityInfo
  • Fill in Name, Description and such as you desire
  • Authored Label allows you to set catogories to your entity, Fill In as desired.
  • DO NOT TOUCH Auto Label
  • Save the prefab!

picture

Create a config file of class SCR_PlacebleEntitiesRegistery under Configs/Editor/PlacebleEntities/Objects and Set:

  • Addon to your projects ID (Name of the main folder e.g ArmaReforger for basegame entities)
  • Source to the Folder holding your prefabs that you want to make placeble
  • Add your E_ editable prefabs to the Prefabs Array.

picture

Now almost done, we need to add this config file to the GM Editor.

Create an overwrite of the prefab: ArmaReforger/Prefabs/Editor/Modes/EditorModeEdit.et

Now edit your new overwrite:

  • Go to the SCR_PlacingEditorComponent
  • Drag your config file onto the Registries Array Entry

picture

The number next to registries will have incremented by one e.g. 40 -> 41

Go to world editor and load the GM_Eden world to test your prefabs!

for any questions/Issues @Walthzer (me) in the ARMA Discord under #enfusion_configuration. Or send a DM but I'd rather we keep everything public!

@Walthzer
Copy link
Author

If you are on github, you can ofcourse also ask questions here! :)

@Walthzer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment