OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: crushnik on 28 Mar 2003, 01:31:37
-
How would you get text to show up on screen during the game, for example after a helicopter has been hit, have a dialog from the pilot, and after a certain amount of time, a response, like
"We've been hit." (pause)
"Brace for impact" (pause)
"Stay down"
for example.
What do you put in, and where does it go?
-
Hello
Look around the site... i found it you should find it too... !!!!! :P
-
Ever made scripts? Here's how you do it.
name the guys who are doing the talking
make a new file called text.sqs and open it in notepad.
put in these lines:
unitname sidechat "We've been hit!"
~5
unitname sidechat "Brace for impact!"
~10
unitname groupchat "Stay down."
exit
then go in to the editor and make a trigger which is activated when the chopper is hit. For example
condition: chopper1 getdammage > 0.5
on activation: [] exec "text.sqs"
-
Hello
Yes that script does work.
Good Luck!