3. Get your Sosigs into H3VR
Updated 3 months agoThis wiki page assumes you have a Custom Sosig in a mod folder ready to go, if not check Sosig Creation Page
As of writing this article there is no Spawner Tool for spawning sosigs from the loader yet
Sandbox (Atlas)
Sosigs are created through Atlas enums and the Spawn Point component in the scene. If you need help setting up an Atlas Meatkit project look at their wiki here
- Inside of Unity Editor, Right click in the Project tab and navigate
Create > MeatKit > Assembly Editors > Enum
and label it - Set the
Type
to `FistVR.SosigEnemyID - Open Added Values, increase size to amount of sosigs you wish to add, include Sosig with their
DisplayName
asName
andValue
as theSosigEnemyID
of each custom sosig. - Top menu of Unity Editor
MeatKit > Scripts > Import Game
to refresh the internal data - Create an empty Game Object in your scene's Hierarchy and Add the Component
Sosig Spawn Point
- Set the Sosig Type in the component to your entry (If it doesn't show up, restart Unity)
- Make sure
Spawn Active
andSpawn On Start
are both ticked - Build and test
Spawn in Code
//Basic Sosig Spawn Options
public readonly SosigAPI.SpawnOptions _spawnOptions = new SosigAPI.SpawnOptions
{
SpawnState = Sosig.SosigOrder.PathTo,
SpawnActivated = true,
EquipmentMode = SosigAPI.SpawnOptions.EquipmentSlots.All,
SpawnWithFullAmmo = true,
};
//Spawn transform in a scene
Transform spawnPoint;
// Your Sosig Enemy ID here
SosigEnemyID id = 420;
//Sosig spawn code with a reference of the Sosig
Sosig sosig = Sodalite.Api.SosigAPI.Spawn(
IM.Instance.odicSosigObjsByID[id],
_spawnOptions,
spawnPoint.position,
spawnPoint.rotation);
Supply Raid
Sosigs are added via the factions, the images generated in the CSE can be placed inside the Supply Raid Editor CustomSosigs folder to show up in the Sosig Browser.
- Create a SR Sosig Faction
- Add a Level
- Add the custom sosig ID to the SosigEnemyID field
- Save faction into a mod folder
- Test faction in H3VR