Variable in the serpant ward script
Posted: Fri Jul 29, 2005 6:26 am
I would like to know what the variable is for who placed the serpant ward. I would like to make it so that if an enemy goes into your serpant ward it makes your screen glow. So I went to the skills.inl and went down to shadow hunters serpant wards (i am glad you wrote lots of notes in your code.)
and added after the first Create_ScreenFade.
I changed targetid, to id hoping that was who put it down, but i dont know what the variable for the person that lays it. I know there has to be one, cause when u die from it, it says who killed u. If you can help me out that would be great. thanks -Viper
Code: Select all
if ( distancebetween < 85 ){
damage = 10
WAR3_damage(targetid, id, damage, CSW_SERPENTWARD, -1)
client_cmd(targetid, "speak ambience/thunder_clap.wav")
Create_ScreenFade(targetid, (1<<10), (1<<10), (1<<12), red, green, blue, 255)
}
Code: Select all
Create_ScreenFade(id, (1<<10), (1<<10), (1<<12), 255, 0, 0, 0)
I changed targetid, to id hoping that was who put it down, but i dont know what the variable for the person that lays it. I know there has to be one, cause when u die from it, it says who killed u. If you can help me out that would be great. thanks -Viper