Jump to content

lil help with resource


OzeTheDude

Recommended Posts

i made a lua script to create a explosion when a player dies

but game dont detect it anyway

i tried zipping it and etc and didnt work

yes, i made a meta.xml file

heres the code of it:

function explosionOnSpawn ( ) 
  local pX, pY, pZ = getElementPosition ( source ) 
  createExplosion ( pX, pY, pZ, 6, source ) 
end 
addEventHandler ( "onPlayerWasted", getRootElement(), explosionOnSpawn) 

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...