For a Margwa you'd pass "spawner_zm_zod_margwa" as the AItype. For a G.I. Unit, you'd pass "spawner_bo3_robot_grunt_assault_mp".
Do be aware the aitype needs to be loaded, so you'll only be able be spawn Margwa in Shadows of Evil since the aitype is not loaded for any other map. You can check which aitypes are loaded by doing /listassetpool 44 in the console.
Hello, I want to spawn a Margwa on certain rounds.
below Xylozi mentioned that the AIType needs to be loaded before I can use SpawnActor.
What is the code to load an AIType? I tried just the spawnactor function with a script_struct to provide origin and angle but nothing happened. Does the origin have to be on the ground? Or would that spawn the margwa in the ground?
Is it possible to create a script_struct with a script_noteworthy of margwa_location?