Raised This Month: $ Target: $400
 0% 

Some help with aura walls


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OWNX
BANNED
Join Date: Nov 2013
Location: Usa
Old 01-03-2014 , 14:11   Some help with aura walls
Reply With Quote #1

I need to build a aura around a player ( origin ) , when nearby enemys are around ( lets say 800 units )
they will lose health ...

but is a bug ... when the player with aura is up on ct base ( dust 2 ) , the players from base inside ( under him ) will lose hp ...

so how can i determine if between target player and origin player is a wall ?


i used a simple code like this

if ( get_distance( id_origin, target_origin ) < RANGE )
{ give damage }

some one can help me ?

thanks ... sorry for my bad english
OWNX is offline
Send a message via ICQ to OWNX Send a message via AIM to OWNX Send a message via Yahoo to OWNX Send a message via Skype™ to OWNX
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 01-03-2014 , 16:40   Re: Some help with aura walls
Reply With Quote #2

There were a native, AFAIK its called can_see_fm(id, target).
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-03-2014 , 18:54   Re: Some help with aura walls
Reply With Quote #3

Try using Ham_FVisible.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
OWNX
BANNED
Join Date: Nov 2013
Location: Usa
Old 01-04-2014 , 04:45   Re: Some help with aura walls
Reply With Quote #4

Thanks for help , i will try
OWNX is offline
Send a message via ICQ to OWNX Send a message via AIM to OWNX Send a message via Yahoo to OWNX Send a message via Skype™ to OWNX
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode