OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SimonRussi on 27 Aug 2002, 18:10:29
-
I already asked it before but no solutions arrived...
the question is: is it possible to change the standard
"Oh no, 2 is down"
with a customized phrase?
And if it is, how? :)
-
OOoo. You would need to dePBO the data files. Find the "Oh no 2 is down" phrase, (probably a compositie of a number of sounds) and replace them with files of your own. Keeping the same names just replace the soud inside them.
-
oh, ok, what if i'd just like to change the text on the screen and eliminate the sounds...?
-
the way I'd do it, is use a custom sound of your own, .ogg it, descript it, and in a script write
#loop
? not (alive unit2name):goto "deadtalk"
goto "loop"
#deadtalk
enableradio false
player say "2isdown"
~1
enableradio true
"2isdown" would be the class name of your sound, describes in your description.ext, dont ask me how description.ext works, i'm having trouble of my own. ::)
also I think this belongs in the sound and cutscenes forum :P
cheers ;D
-
Or get rid of that CPU hungry loop and just use;
@!(alive Unit2)
rest of the script