Jump to content

Sending m_afAffectFlag to client [Source]


Go to solution Solved by MshL,

Recommended Posts

Hello, I am making new particle effect displayed for specific flag in database, it looks like this :

if(GetGMLevel() == GM_HEAD)
				m_afAffectFlag.Set(AFF_HEADMASTER);

Also added new Effect to my client in root

	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+41, "Bip01", "effect/hm.mse")

and it works perfectly fine, BUT...

when i want to add additional script for this flag like this(in client source ) :

if (m_kAffectFlagContainer.IsSet(AFFECT_HEADMASTER))
		return true;

it doesn't return true!!

AFF_HEADMASTER and AFFECT_HEADMASTER are both set to 42, 

what more I have to do to make it work??

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

7 hours ago, MshL said:

Hello, I am making new particle effect displayed for specific flag in database, it looks like this :


if(GetGMLevel() == GM_HEAD)
				m_afAffectFlag.Set(AFF_HEADMASTER);

Also added new Effect to my client in root


	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+41, "Bip01", "effect/hm.mse")

and it works perfectly fine, BUT...

when i want to add additional script for this flag like this(in client source ) :


if (m_kAffectFlagContainer.IsSet(AFFECT_HEADMASTER))
		return true;

it doesn't return true!!

AFF_HEADMASTER and AFFECT_HEADMASTER are both set to 42, 

what more I have to do to make it work??

 

 

check in the enum from client if the id is same fom server

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.