You must be logged in to post messages.
Please login or register

EE2 Scenario Design
Moderated by GoSailing, Soty

Hop to:    
Welcome! You are not logged in. Please Login or Register.No replies
Empire Earth Heaven » Forums » EE2 Scenario Design » HasTextBeenTyped doesn't work?
Bottom
Topic Subject:HasTextBeenTyped doesn't work?
DrMonaLisa
Marine
posted 01-04-13 07:23 PM EDT (US)         
Hi
// bool HasTextBeenTyped( const char *in_szText)
// 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
I can't get it to work. I've tried everything... Can anyone check if this function works for you?

My script:
RULE MONA0 ONESHOT
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
Btw. ACTION works fine, I checked with the other rule...

[This message has been edited by DrMonaLisa (edited 01-04-2013 @ 07:24 PM).]

You must be logged in to post messages.
Please login or register

Hop to:    

Empire Earth Heaven | HeavenGames