Hi
My script:
// bool HasTextBeenTyped( const char *in_szText)I can't get it to work. I've tried everything... Can anyone check if this function works for you?
// Check and see if the specified text has been typed into
// the chat box during the current game. Note that this check
// is case insensitive. Therefore if you are checking for "BAR"
// and "bar" had been typed into the chat box, true would be
// returned.
// Example:
// is steve rocking?
if( HasTextBeenTyped("steve is rocking") )
then playSomeRockingMusic
My script:
RULE MONA0 ONESHOTBtw. ACTION works fine, I checked with the other rule...
if( HasTextBeenTyped("mona") )
then MONAACTION0
END_RULE
ACTION MONAACTION0
SCRIPT WORLD
if ( bDumpSemaphore10) {
bDumpSemaphore10 = true;
PrintMessageFromPlayer( "MONAAAAAAAAAAAAAAAAAA!!!", 2 );
PlayVoiceOver("fx_exp_03.mp3");
PlayVoiceOver("fx_death_female_04.mp3");
PlayVoiceOver("fx_demo_bridge_explosion.mp3");
bDumpSemaphore10 = false; }
END_SCRIPT
END_ACTION
[This message has been edited by DrMonaLisa (edited 01-04-2013 @ 07:24 PM).]