If you want to print a game message in gold use this!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply

This post has been helpful?

Yes it is very helpful!
3
50%
I wouldn't really use that.
3
50%
 
Total votes: 6

obersturmfuhrer
Lance Corporal
Posts: 13
Joined: Sun Jul 07, 2002 12:50 pm
Location: Orlando, Florida & Augsburg, Germany
Contact:

If you want to print a game message in gold use this!

Post by obersturmfuhrer »

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
Oops, I threw the pin instead of the grenade!
Author of "The Last Castle" map
Post Reply