OzeTheDude Posted April 21, 2011 Posted April 21, 2011 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)
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