Liberty Unleashed

Scripting => Script Help => Topic started by: JamesConway on August 22, 2016, 03:43:58 pm

Title: Fires, and extinguishing them
Post by: JamesConway on August 22, 2016, 03:43:58 pm
Is there a way to check if a fire has been extinguished by water?
Title: Re: Fires, and extinguishing them
Post by: Ankris on August 22, 2016, 08:00:38 pm
No. The only way is check if the player is pressing KEY_INCAR_FIRE, check if the player is near and extinguish the fire with ExtinguishAllFires.
Title: Re: Fires, and extinguishing them
Post by: JamesConway on August 22, 2016, 10:26:09 pm
Fire's are not seeable if the fire has been created before a player has joined the game?
Title: Re: Fires, and extinguishing them
Post by: Ankris on August 22, 2016, 11:23:29 pm
Fire's are not seeable if the fire has been created before a player has joined the game?

They aren't (tested now).
Title: Re: Fires, and extinguishing them
Post by: JamesConway on August 23, 2016, 12:37:18 am
Thank you for confirming
Title: Re: Fires, and extinguishing them
Post by: Vortrex on August 28, 2016, 07:59:58 pm
There was a post I had on the forums here a while back regarding the sync of fires.

You need to make an array that holds the location of all fires, then every time a player joins the server, you need to extinguish and re-create them via the info in the array.

When one is successfully put out, just remove it from the array so it doesn't get re-created.
Title: Re: Fires, and extinguishing them
Post by: JamesConway on August 28, 2016, 08:49:08 pm
I read that part yeah Vortrex, it's exactly how I did it. I put all the fires in an array. Every 30 or 60 seconds I delete/extinguish them all and do createfire on all those locations again.