If you want to print a game message in gold use this!
Posted: Wed Jul 31, 2002 8:40 pm
Let say in your script someone activates a trigger to call in an airstrike, use this code to print the message that someone has called in an airstrike on the screen in gold. This is just like what you would see when someone calls a vote in the game.
airstrike:
$radio_airstrike_trigger waittill trigger
$speaker2 playsound fail_artillery
iprintln_noloc "The Allies have called in air support!"
$radio_airstrike model "miscobj/radio_military.tik"
$radio_airstrike_trigger remove
wait 5
thread air_attack
end
//----------------------------------------------------------------
air_attack:
exec global/bomber.scr::bomb 10
exec global/bomber.scr::bomb 11
exec global/bomber.scr::bomb 12
exec global/bomber.scr::bomb 15
wait 1
exec global/bomber.scr::bomb 13
exec global/bomber.scr::bomb 14
exec global/bomber.scr::bomb 16
wait (randomfloat(30) + 20)
goto air_attack
end
airstrike:
$radio_airstrike_trigger waittill trigger
$speaker2 playsound fail_artillery
iprintln_noloc "The Allies have called in air support!"
$radio_airstrike model "miscobj/radio_military.tik"
$radio_airstrike_trigger remove
wait 5
thread air_attack
end
//----------------------------------------------------------------
air_attack:
exec global/bomber.scr::bomb 10
exec global/bomber.scr::bomb 11
exec global/bomber.scr::bomb 12
exec global/bomber.scr::bomb 15
wait 1
exec global/bomber.scr::bomb 13
exec global/bomber.scr::bomb 14
exec global/bomber.scr::bomb 16
wait (randomfloat(30) + 20)
goto air_attack
end