Obscure CIA_Agent 0 Posted March 14, 2006 Hello again my friends. Â I have another question for you. I have an introduction in the beginning of my map where each player's name is shown at the bottom of the screen with some text infront of it. This part works fine, however when you disable AI the text still shows. Here is the file so far: ~25 westsoldier1 action ["STROKEGUN"] titletext [format ["The Lieutenant with Steyr AUG - %1", name westsoldier1], "plain down"] ~4 titletext [format ["The Sergeant, a Black Op with XMS/M4 Carbine - %1", name westsoldier2], "plain down"] Â ~4 titletext [format ["The Corporal with XMS/M4 Carbine - %1", name westsoldier3], "plain down"] Â ~4 titletext [format ["The Private First Class with M16A2/Mortar - %1", name westsoldier4], "plain down"] Â ~4 titletext [format ["The Private with G36a - %1", name westsoldier5], "plain down"] I need to hide the text for the disabled AI, but I don't know how... Â Does anyone know what's up? Thanks, CIA Â Share this post Link to post Share on other sites
XCess 0 Posted March 14, 2006 try putting ?unitName alive: before each instance of titleText. Share this post Link to post Share on other sites
Obscure CIA_Agent 0 Posted March 14, 2006 I just tried what you suggested and it did not work.  I tried the following and much more: ?westsoldier1 alive: titletext [format ["The Lieutenant with Steyr AUG - %1", name westsoldier1], "plain down"] ?unitName alive: titletext [format ["The Lieutenant with Steyr AUG - %1", name westsoldier1], "plain down"] 'unitName |#|alive:' Error Unknown Operator alive  -  is the error I get. What's the deal? Thanks, CIA P.S. This is only my second mission. Share this post Link to post Share on other sites
raptorsaurus 0 Posted March 14, 2006 You have your commands out of order. Â It should be: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? alive unitName: titletext [format ["The Lieutenant with Steyr AUG - %1", name westsoldier1], "plain down"] The "alive" goes before the unitName not after. Share this post Link to post Share on other sites
Obscure CIA_Agent 0 Posted March 15, 2006 Thanks guys it's working now! Share this post Link to post Share on other sites