Jump to content

Zombie Proof


Recommended Posts

Hey, so I have this colshape, but whenever a zombie enters it, they don't die.

local safeZone = createColCuboid (95.974617004395, 1751.3895263672, 17.640625, 255, 380, 255) 
local safeArea = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 380, 255, 0, 0, 120) 
setRadarAreaFlashing(safeArea, true) 
setElementData (safeArea,"zombieProof", true) 

Link to comment
local safeZone = createColCuboid (95.974617004395, 1751.3895263672, 17.640625, 255, 380, 255) 
local safeArea = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 380, 255, 0, 0, 120) 
addEventHandler ( "onColShapeHit", safeZone, 
                function ( hitElement ) 
                if getElementType( hitElement ) == "ped" then 
                setRadarAreaFlashing(safeArea, true) 
                setElementData (safeZone,"zombieProof", true) 
                killPed(hitElement) 
             end 
         end 
        ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...