Jump to content

LUA to set a player on fire?


UngratefulDead

Recommended Posts

I want to have an item that doesn't work every time, sometimes it sets the player on fire instead. I have all of that coded in the LUAs, except I'm hung up getting the fire to start. It doesn't seem to be:

getPlayer():getBodyDamage():setIsOnFire(1);

Because that gives me a stack trace. I'd be okay if it also set the square itself on fire (although I'm not sure how it would work on servers with no firespread), I just thought that would probably be a little trickier.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Sorry for the very late reply, I just seen this thread.

Coincidentally I have experience with setting things on fire via my work on Cheat Menu, so I might be able to scribble something out quickly...

local function startFire()	local player = getPlayer();	player():getSquare():StartFire();end
Link to comment
Share on other sites

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
×
×
  • Create New...