

Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Quote from: Harry Bo21 on Today at 11:36:44 am
ok, next question, whats the best way to spawn a clip there too?
Either use a spawnCollision or use spawn("script_model") setModel("collision----") hide();
Probably should use that method instead.
Code: [Select]
place_juggernaut_machine()
{
machine_origin = (172, 594, 145);
machine_angles = (0, 0, 0);
machine = Spawn( "script_model", machine_origin );
machine.angles = machine_angles;
machine setModel( "zombie_vending_jugg_on" );
machine.targetname = "vending_jugg";
machine_trigger = Spawn( "trigger_radius_use", machine_origin + (0 , 0, 30), 0, 20, 70 );
machine_trigger.targetname = "zombie_vending";
machine_trigger.target = "vending_jugg";
machine_trigger.script_noteworthy = "specialty_armorvest";
machine_clip = Spawn( "script_model", machine_origin + (0, 0, 100) );
machine_clip.angles = machine_angles;
machine_clip SetModel( "collision_geo_64x64x256" );
machine_clip Hide();
}
This was adapted from the code in BO1 and how it places the Mule Kick in maps.
What you're looking for is the machine_clip code.