Dear developer of this very fun mod. I don’t understand how you can spawn an NPC, I can’t do it through the console. Is it possible to add an NPC spawn to Tooll, if so, how to do this, can you write or remove the instructions?
You can manually add any NPCs by creating new presets for them in SpawnEntityList.lua (read the description for more information about the file path and format). List of all available NPCs that you can find in the sandbox in "Archetype Entity".
For example, a simple category with enemy soldiers for the spawn list: { name = "Enemy NPC", categoryElements = { { name = "Asian heavy solder - rifle", class = "Grunt", archetype = "Asian_new.Camper\\Camp.Heavy_Rifle", zOffset = 0.5 }, { name = "Asian light solder - rifle & law", class = "Grunt", archetype = "Asian_new.Camper\\Camp.Light_Rifle_LAW", zOffset = 0.5 }, { name = "Asian light solder - shootgun", class = "Grunt", archetype = "Asian_new.Camper\\Camp.Light_Shootgun", zOffset = 0.5 }, } },
Hello! Dear creator of this modI ask for help on one more point What you answered me above works perfectly with enemy NPCs. I have a question, how can I spawn my allies? I managed to do everything without errors, but instead of US_Rifleman_1b, the Korean did it. Can this be fixed somehow? Or do you need to find an NPC of this type on the map?
Unfortunately, at the moment I have not added NPCs to the prepared list for the spawn. I will try to add them to the preset in future updates, but for now, if you wish, you can try to add them yourself to the list located in <YOUR_GAME_FOLDER>\Mods\CreativeTools\Game\Scripts\Entities\EntitySpawnList.xml.
Hey quick question, how might i spawn multiplayer vehicles? Im trying to spawn the North Korean VTOL on singleplayer, the vehicle debug is "usvtol_built" but i can't spawn it
To spawn your vehicle, you first need to add it to the list in <YOUR_GAME_FOLDER>/Mods/CreativeTools/Game/Scripts/SpawnEntityList.lua. To do this you need to know name of vehicle object or name + full path to object archetype (you can find it in the Sandbox Editor).
15 comments
The easiest way to get this weapon is through the normal command:
i_giveitem AlienMount
For attachment for that gun:
i_giveitem MOARAttach
But if you want to create weapons through a mod, you need to add a section in the settings from the description with the weapon code "AlienMount"
You can manually add any NPCs by creating new presets for them in SpawnEntityList.lua (read the description for more information about the file path and format). List of all available NPCs that you can find in the sandbox in "Archetype Entity".
For example, a simple category with enemy soldiers for the spawn list:
{
name = "Enemy NPC",
categoryElements =
{
{
name = "Asian heavy solder - rifle",
class = "Grunt",
archetype = "Asian_new.Camper\\Camp.Heavy_Rifle",
zOffset = 0.5
},
{
name = "Asian light solder - rifle & law",
class = "Grunt",
archetype = "Asian_new.Camper\\Camp.Light_Rifle_LAW",
zOffset = 0.5
},
{
name = "Asian light solder - shootgun",
class = "Grunt",
archetype = "Asian_new.Camper\\Camp.Light_Shootgun",
zOffset = 0.5
},
}
},
What you answered me above works perfectly with enemy NPCs.
I have a question, how can I spawn my allies?
I managed to do everything without errors, but instead of US_Rifleman_1b, the Korean did it. Can this be fixed somehow? Or do you need to find an NPC of this type on the map?
Unfortunately, at the moment I have not added NPCs to the prepared list for the spawn. I will try to add them to the preset in future updates, but for now, if you wish, you can try to add them yourself to the list located in
<YOUR_GAME_FOLDER>\Mods\CreativeTools\Game\Scripts\Entities\EntitySpawnList.xml.
To spawn your vehicle, you first need to add it to the list in <YOUR_GAME_FOLDER>/Mods/CreativeTools/Game/Scripts/SpawnEntityList.lua.
To do this you need to know name of vehicle object or name + full path to object archetype (you can find it in the Sandbox Editor).