Thread: LUA scripters?
View Single Post
  #3  
Old 06-28-2016, 10:36 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Add a counter to trigger

Code:
InjuryCount=0

function hurtplayer(e)
Detect = PlyrDist(e)
Health = Health(e)

if Detect < 100 then
Health(-1)
InjuryCount=InjuryCount+1
end

if Health > 1 and InjuryCount==5 then
action(e,1)
end

end
Works with any engine that reads LUA, all you need is an IDE (or code editor like Notepad++) find the syntax for the engine functions and away you go with your own scripts.

Last edited by Guest001; 06-28-2016 at 10:56 AM.
Reply With Quote