Lil help here.

12/09/2011 11:53 KraHen#16
Quote:
Originally Posted by Fаng View Post
Normally, you would do something like this...

If you want the effect to appear on everyone's own character:
Code:
...
If you want the effect to appear on only your own character from everyone else's view:
Code:
...
Edit: You probably use an interface if your using a smart source... so you would do something like...
Code:
...
Btw I really don`t see how using an interface-based screening is an improvement, maybe it`s more OOP friendly, but technically you can use different screens for different types of entities, like characters/NPCs/etc. so you can deal with less checks. That`s what I`m doing and I`m more comfortable with it, tho it`s just my 2 cents.

@on topic : your second code snippet should basically be his SendToScreen or w/e it`s called function?
12/09/2011 12:19 Spirited#17
Quote:
Originally Posted by KraHen View Post
Btw I really don`t see how using an interface-based screening is an improvement, maybe it`s more OOP friendly, but technically you can use different screens for different types of entities, like characters/NPCs/etc. so you can deal with less checks. That`s what I`m doing and I`m more comfortable with it, tho it`s just my 2 cents.

@on topic : your second code snippet should basically be his SendToScreen or w/e it`s called function?
I like your idea better.