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)

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted
posx, posy, posz, type, syze, r, g, b, a 

Where did you define these variables?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

What error does it output? are you actually providing correct values to the posx, posy, posz vars?

"First they ignore you, then they laugh at you, then they fight you, then you win."

- Mahatma Gandhi (1869-1948)

Posted

posx posy posz size r g b a is things that i will put later

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

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.

"First they ignore you, then they laugh at you, then they fight you, then you win."

- Mahatma Gandhi (1869-1948)

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.

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted

Yes, the rest seems to be fine.

local elementType = getElementType( hitElement ) 

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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