Author Topic: Typemask for AIPlayers?  (Read 2673 times)

Doing something such as
Code: [Select]
centerPrintAll("\c6< test >");
defaults the message color, including the < and > signs to red. How can I turn this off?

New question. Is there a typemask for AIPlayers, because I can't seem to find it. $TypeMasks::PlayerObjectType doesn't seem to work.
« Last Edit: August 07, 2015, 04:58:14 PM by PurpleMetro »

You write a second function that processes the string you send, sets colors properly and then run centerPrintAll in that.
« Last Edit: August 06, 2015, 09:29:17 AM by Dannu »

Or if you have no choice, package centerPrintAll.

Try this instead:

Code: [Select]
centerPrintAll("<color:ffffff>< test >");
If that doesn't work, try this:

Code: [Select]
centerPrintAll("\c6\< test \>");

Oh, I misunderstood the question.


$TypeMasks::PlayerObjectType, see http://forum.blockland.us/index.php?topic=212880.0

here's a function that i made a while ago that'll help with figuring out typemasks: http://pastebin.com/raw.php?i=0XPatUav

$TypeMasks::PlayerObjectType, see http://forum.blockland.us/index.php?topic=212880.0

here's a function that i made a while ago that'll help with figuring out typemasks: http://pastebin.com/raw.php?i=0XPatUav

thanks, it's weird though, i want to shoot a raycast out of my player towards an AIPlayer, however it doesn't give an accurate result at all. not sure if this is my problem, or something i'm overlooking here

It's probably because the raycast is colliding with you, not the AiPlayer? Post your code.

It's probably because the raycast is colliding with you, not the AiPlayer? Post your code.

no, %exempt is set to true in my function.

no, %exempt is set to true in my function.
You're supposed to set that to the object you want to ignore, not a boolean.

You're supposed to set that to the object you want to ignore, not a boolean.

oh, thanks

if you have multiple questions make multiple topics unless its on  the same subject

Yeah, changing the topic name is confusing me from looking at the replies.