Jump to content

fxaddsparks/blood/firehydrant question.


Recommended Posts

setting x, y, z for element position will create the spark there. right?

I have one:-

funtion = fxAddSpark ()

onPlayerWasted

x,y,z = getplayerposition

fxAddSparks ( x, y, z,[float force=4, int count=1 float acrossLineX=0, float acrossLineY=0, float acrossLineZ=1, bool blur=false, float spread=5, float life=3] )

end

Link to comment
setting x, y, z for element position will create the spark there. right?

I have one:-

funtion = fxAddSpark ()

onPlayerWasted

x,y,z = getplayerposition

fxAddSparks ( x, y, z,[float force=4, int count=1 float acrossLineX=0, float acrossLineY=0, float acrossLineZ=1, bool blur=false, float spread=5, float life=3] )

end

lol its so wrong!

first of all use

[/code]

, and heres how it should look like:

--ClientSide!
addEventHandler("onClientPlayerWasted",getRootElement(),function()
 x,y,z = getElementPosition(getLocalPlayer())
fxAddSparks ( x, y, z, 4, 1, 0, 0, 1, false, 5, 3 )
end)

sory, but according what i saw till scripting the simplest things you need learn much much much more

[code=lua]your script
Link to comment
setting x, y, z for element position will create the spark there. right?

I have one:-

funtion = fxAddSpark ()

onPlayerWasted

x,y,z = getplayerposition

fxAddSparks ( x, y, z,[float force=4, int count=1 float acrossLineX=0, float acrossLineY=0, float acrossLineZ=1, bool blur=false, float spread=5, float life=3] )

end

What is this.. I don't even

Listen, you have a very, very long way to go even in completely basic Lua syntax. Get a tutorial and READ it before trying any more.

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