UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: nabaro on March 29, 2015, 11:22:24 pm

Title: Spawn trigger multiple
Post by: nabaro on March 29, 2015, 11:22:24 pm
Hi, I just wanted to know what the parameters would be for spawning a trigger_multiple. Something like this
Code Snippet
Plaintext
radius = spawn("trigger_radius",origin,spawnflags,radius,height);
except for a trigger multiple. Thanks in advance for your help!
Title: Re: Spawn trigger multiple
Post by: DidUknowiPwn on March 29, 2015, 11:28:50 pm
Same way, in radiant check what the spawnflags you want to set for trigger_multiple then replace both trigger_radius with trigger_multiple and the spawnflags.
spawn("") can be anything from the right click 2d view stuff.
Title: Re: Spawn trigger multiple
Post by: nabaro on March 29, 2015, 11:37:07 pm
Not sure if http://youtu.be/YELght65sco (http://youtu.be/YELght65sco) this is what you mean, but all this shows me are the amount of spawnflags...
Title: Re: Spawn trigger multiple
Post by: BluntStuffy on March 30, 2015, 12:00:12 am
spawn("") can be anything from the right click 2d view stuff.

 :o Rlly? can you give an example of how to spawn a trigger_multiple or a trigger_use? Because i Always thought that wasn't possible..
Title: Re: Spawn trigger multiple
Post by: daedra descent on March 30, 2015, 12:14:27 am
Same way, in radiant check what the spawnflags you want to set for trigger_multiple then replace both trigger_radius with trigger_multiple and the spawnflags.
spawn("") can be anything from the right click 2d view stuff.

No you can't. World at War will give an error if you try.

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.gyazo.com%2Fbb53105c43c6696c200087c5f41d3f54.png&hash=ed3c218a7613bccaaeeab8ab38fcfa98099f9798)

Edit: also tried with trigger_use. Same thing.
Title: Re: Spawn trigger multiple
Post by: DidUknowiPwn on March 30, 2015, 12:18:04 am
:o Rlly? can you give an example of how to spawn a trigger_multiple or a trigger_use? Because i Always thought that wasn't possible..

Most are able to be spawned unless it's set to not be able to spawn like trigger_use I'll check out the exe to see what it can do.

So comparing to BO1 the following can be spawned (according to bo1) spawn needs to have a spawnFunction related to the entity type you're trying to create if it doesn't it'll throw that error where it cannot be dynamically spawned.

The ents with spawnfunctions are: trigger_radius script_model script_origin script_vehicle
Note: You can still use weapon_ or actor_ as they're independently checked from the rest.

List of "triggers":
Code Snippet
Plaintext
_damage
_disk
_friendlychain
_hurt
_lookat
_multiple
_once
_radius
_use
_use_touch

Title: Re: Spawn trigger multiple
Post by: nabaro on March 30, 2015, 02:10:18 am
Okay, I think I'll use
Code Snippet
Plaintext
DistanceSquared();
instead. Thanks to all you guys for your help  :)