UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: MegaMech43 on January 21, 2017, 10:33:55 pm

Title: Spawn Margwa
Post by: MegaMech43 on January 21, 2017, 10:33:55 pm
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?

Code Snippet
Plaintext
SpawnActor(<AIType>, <origin>, <angles>, [targetname], [forcespawn], [fullyaware], [spawnerEnt])
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.
Title: Re: Spawn Margwa
Post by: IDontEvenKnow on January 22, 2017, 12:05:25 am
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?

I don't think they gave us anything to do with margwa's but my guess is you'd need to do aitype,*margwa ai namer* in your zone file.