Page 1 of 1
bomb messages
Posted: Sun Oct 03, 2004 8:40 pm
by Hell_Soldier
how do i do in script that when a bomb is blown text will appear notifing that the bomb exploded.
like if u destory a flak88 then a message will come up and say "the flak88 was destroyed"
Posted: Mon Oct 04, 2004 1:15 am
by Ric-hard
thread global/message_print.scr::message "The flak88 was destroyed!"
Appears as white text in the middle of the screen.
Posted: Mon Oct 04, 2004 6:52 am
by Bjarne BZR
And to know when the bomb has blown, do this:
Code: Select all
while($targetname_of_your_bomb.exploded != 1) {
waitframe
}
thread global/message_print.scr::message "The flak88 was destroyed!"
Posted: Mon Oct 04, 2004 9:20 am
by Hell_Soldier
do i need to make a thread for this?
Posted: Mon Oct 04, 2004 9:46 am
by Hell_Soldier
k thx guys.
i did it in a thread, and put the message under the compass rather in the middle:
Code: Select all
bomb1_exploded:
while($flak_bomb.exploded != 1) {
waitframe
}
iprintlnbold_noloc "The flak88 was destroyed!"
end
Posted: Mon Oct 04, 2004 10:56 am
by Bjarne BZR
Yes, as execution of the script will not go past that point until the bomb has exploded, putting it in a separate thread is a good idea.