UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Spawn Margwa

broken avatar :(
Created 7 years ago
by MegaMech43
0 Members and 1 Guest are viewing this topic.
1,749 views
broken avatar :(
×
broken avatar :(
Location: caCanada, Eh
Date Registered: 24 November 2016
Last active: 6 years ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
MegaMech43's Groups
MegaMech43's Contact & Social Linksmegamechmegamech.net
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.
Last Edit: January 21, 2017, 10:36:00 pm by MegaMech43
Marked as best answer by MegaMech43 7 years ago
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 6 years ago
Posts
77
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Can I do this?
Signature
×
IDontEvenKnow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
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.

 
Loading ...