Game Development Community

Modify the info that appears when setting $AISK_SHOW_NAME = 1;

by Scottie Sirius · in General Add-On Discussion · 01/11/2010 (12:37 pm) · 4 replies

All I really want to show up is the health bar. I don't really want the action, attention level or Id number. How can I display only the little progress bar of the bots health?


Thank you.

#1
01/11/2010 (9:25 pm)
Around line 1690 which is right at the end of the "Think" function in aiPlayer.cs you should see a line of code like:

%obj.setshapename("");

Change it to:
%obj.setshapename(" ");

This will set the bot's name to be an invisible space rather than nothing.
#2
01/22/2010 (9:35 pm)
I just finally did the update and I'm not seeing the little health bar that I used to see when I put my sights on someone. Did you do anything different there or is it something else I'm doing?

EDIT: Pretty sure it's nothing to do with the kit. I switched the weapon back to the RocketLauncher and it seems to show the bar now...just not working with the crossbow...no clue what it could be... Anyone?
#3
01/23/2010 (4:36 am)
Hi Scott... 2 questions... which engine is this related to? And which addon?
#4
01/23/2010 (12:08 pm)
Sorry, it's T3D1.1a but it doesn't really appear to be the add-on. (The Universal AI Starter Kit) I had it all working before but then I re-installed T3D and moved my files into the new install. The RocketLauncher works right but the crossbow doesn't show the little health bar when I take aim at another player or an AI.