Text
Moderator: Moderators
- thestrokes1251
- Lance Corporal
- Posts: 19
- Joined: Sun Jan 30, 2005 1:05 am
- Location: Long Island, New York
Text
How do I get it to say, "Private Johnson has been killed in action" when one of my guys dies in single player? 
ZITO
Code: Select all
iprintlbold_noloc "Private Johnson was killd in action"Code: Select all
iprintln "Private Johnson was killed in action."Code: Select all
centerprint "Private Johnson was killed in action."second says it with no sound and in orangeish.
third prints in white, no sound, to the middle of your screen.
to make it work you need a listener thread, call from end of main thread.
Code: Select all
JohnsonDeathListener:
$johnson waittill death
iprintlbold_noloc "Private Johnson was killd in action"
// any other code related to the incident here.
endModerator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
- thestrokes1251
- Lance Corporal
- Posts: 19
- Joined: Sun Jan 30, 2005 1:05 am
- Location: Long Island, New York
first one says it under teh compass in white, with clicking.
second one says it under compass in yellowish with no sound
third one prints to middle of screen. they all say teh same thing.
to make it work you need to tell it to wait til the guy has died, so after your main thread put this in your script.
so your whole script hould look liek this
make sure your guy's $targetname is $johnson.
second one says it under compass in yellowish with no sound
third one prints to middle of screen. they all say teh same thing.
to make it work you need to tell it to wait til the guy has died, so after your main thread put this in your script.
Code: Select all
JohnsonDeathListener:
$johnson waittill death
iprintlbold_noloc "Private Johnson was killd in action"
// any other code related to the incident here.
endCode: Select all
main:
level waittill prespawn
level waittill spawn
thread JohnsonDeathListener
end
JohnsonDeathListener:
$johnson waittill death
iprintlbold_noloc "Private Johnson was killed in action"
// any other code related to the incident here.
end
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006