
SpawnPrefab
Adds a command to spawn a prefab. `spawn_prefab "<prefab_key>" <pos_x> <pos_y> <pos_z> <rotation_x> <rotation_y> <rotation_z>`
Last updated | 3 months ago |
Total downloads | 176 |
Total rating | 0 |
Categories | Tools |
Dependency string | Lawlzee-SpawnPrefab-1.1.0 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function

bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2108
README
Spawn Prefab
Adds a command to spawn a prefab.
Syntax:
spawn_prefab "<prefab_key>" <pos_x> <pos_y> <pos_z> <rotation_x> <rotation_y> <rotation_z>
Use the ~
prefix before a position value to make it relative to the player's position. Similarly, use the ~
prefix before a rotation value to make it relative to the prefab's base rotation.
For a list of available prefabs, refer to this link. You may want to filter by UnityEngine.GameObject
to see only the spawnable objects.
Examples:
spawn_prefab "RoR2/Base/ExplosivePotDestructible/ExplosivePotDestructibleBody.prefab"
spawn_prefab "RoR2/Base/Teleporters/LunarTeleporter Variant.prefab" ~20 ~5 ~0
spawn_prefab "RoR2/Base/Teleporters/Teleporter1.prefab" ~0 ~0 ~0 ~0 ~0 ~90