Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Print text if a flag is Set to X
Print text if a flag is Set to X
2004-11-02, 3:07 PM #1
Hi,

I'm looking for code to do the following:

Return a message if a flag is set to something.

So it would like like,

target = FirstThingInView(player, 45, 50, 0x400);
if(GetFlags(victim, 0x8);
{
Print(Flag 0x8 is currently enabled on the victim);
}
else
{
Print(0x8 Flag is not on the Victim);

Something like that?

I want it to return a message if the enemy has 0x8(God Mode) on.

Any help would be great

T0rn
2004-11-02, 3:51 PM #2
Code:
	player = getlocalplayerthing();
	target = FirstThingInView(player, 45, 50, 0x400);
	if(GetThingFlags(target) & 0x8)
	{
		Print("Flag 0x8 is currently enabled on the victim");
	}
	else
	{
		Print("0x8 Flag is not on the Victim");
	}
May the mass times acceleration be with you.
2004-11-02, 4:19 PM #3
Perfect.

Thank you very much man.

↑ Up to the top!