-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- test_bullethit script - does nothing. function test_bullethit_init(e) end local misses = 0 local shotFired = false function test_bullethit_main(e) if g_PlayerGunFired == 1 then if not shotFired then shotFired = true local bx, by, bz, m, t = GetBulletHit() if m == nil or m ~= 2 then misses = misses + 1 PromptDuration( misses, 3000 ) end end else shotFired = false end end