Game Modding | Call of Duty: Black Ops 3 | Scripting
gunrock12:
How do i make a message appear after i kill a brutus?
i tried this script but it didn't work.
function spawn_brutus()
{
guys = GetEnt("hq_soldiers", "script_noteworthy");
boss_trigger5 = GetEnt("boss_trigger5", "targetname" );
boss_trigger5 waittill("trigger");
iprintlnbold("prision boss spawnes");
zm_cellbreaker::spawn_brutus(2000);
guys waittill("death");
wait(2);
iprintlnbold( "Yeah you killed him" );
}
thanks for any help!
Spiki:
Dildo = zm_cellbreaker::spawn_brutus(2000);
Dildo waittill("death");
gunrock12:
It didn't work as soon as brutus spawned the iprintlnbold( "Yeah you killed him" ); would pop up the same time he
spawned in.
eDeK:
If you are using the CELLBREAKER of Spiki, try this...
Open zm_cellbreaker.gsc and search this...
function private brutusSpawnSetup()
"Inside this function", put this at the bottom...
self thread i_killed_a_brutus();
Copy and paste this function at the bottom of the GSC
function i_killed_a_brutus( eInflictor, attacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime )
{
self waittill( "death", attacker );
if( isdefined( attacker ) && IsPlayer( attacker ) )
{
IPrintLnBold( "Yeah you killed him" );
WAIT_SERVER_FRAME;
}
WAIT_SERVER_FRAME;
}
gunrock12:
Thanks it worked!