GerardWay Posted June 12, 2014 Share Posted June 12, 2014 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
Max+ Posted June 12, 2014 Share Posted June 12, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now