Register for your free account! | Forgot your password?

You last visited: Today at 20:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lil help here.

Discussion on Lil help here. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 12/09/2011, 11:53   #16


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
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?
KraHen is offline  
Old 12/09/2011, 12:19   #17
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
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.
Spirited is offline  
Reply




All times are GMT +1. The time now is 20:56.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.