AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some help with aura walls (https://forums.alliedmods.net/showthread.php?t=232697)

OWNX 01-03-2014 14:11

Some help with aura walls
 
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

NiHiLaNTh 01-03-2014 16:40

Re: Some help with aura walls
 
There were a native, AFAIK its called can_see_fm(id, target).

hornet 01-03-2014 18:54

Re: Some help with aura walls
 
Try using Ham_FVisible.

OWNX 01-04-2014 04:45

Re: Some help with aura walls
 
Thanks for help , i will try


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

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