CheiN Posted August 12, 2012 Share Posted August 12, 2012 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) Link to comment
Castillo Posted August 12, 2012 Share Posted August 12, 2012 posx, posy, posz, type, syze, r, g, b, a Where did you define these variables? Link to comment
Dev Posted August 12, 2012 Share Posted August 12, 2012 What error does it output? are you actually providing correct values to the posx, posy, posz vars? Link to comment
CheiN Posted August 12, 2012 Author Share Posted August 12, 2012 posx posy posz size r g b a is things that i will put later Link to comment
Dev Posted August 12, 2012 Share Posted August 12, 2012 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. Link to comment
CheiN Posted August 12, 2012 Author Share Posted August 12, 2012 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. Link to comment
Castillo Posted August 12, 2012 Share Posted August 12, 2012 Yes, the rest seems to be fine. local elementType = getElementType( hitElement ) That's not being used, you should remove it maybe. Link to comment
ernst Posted August 12, 2012 Share Posted August 12, 2012 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 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