Jump to content

explosion


CheiN

Recommended Posts

Posted
local marky = createMarker( posx, posy, posz, type, syze, r, g, b, a ) 
  
function hit( hitElement, matchingDimension ) 
local elementType = getElementType( hitElement ) 
createExplosion( posx, posy, posz, 4, true, 5.0, false ) 
end 
addEventHandler( "onMarkerHit", marky, hit) 

im good?(sorry for take your time)

Posted

You cannot put them later if you're creating the marker on script start.. if you wish to put them later, you need to place the createMarker function within an event and then provide the variables to it upon event trigger.

Posted

u do not understand im scripting on my 3ds and i havent mta pos or colors or size(THINGS THAT I WILL PUT LATER) i only want know if im good.

Posted
Yes, the rest seems to be fine.
local elementType = getElementType( hitElement ) 

That's not being used, you should remove it maybe.

He should use it to detect whether the hit is a player or not

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