help with a hide and seek lua function
I'm working on a map and need a lua function that makes the seekers receive no damage other than from the tranq and/or knife. I have this so far...
function player_ondamage( player, damageinfo ) if player:GetTeamId() == SEEKERS then if ( weapon == "ff_weapon_knife" ) then damageinfo:SetDamage(1); else damageinfo:ScaleDamage(0) end return end end |
Code:
function player_ondamage(player, damageinfo) |
Thanks Rookie, I'll test it a bit later!
|
All times are GMT. The time now is 02:16 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.