Liberty Unleashed
Scripting => Script Help => Topic started by: JamesConway on August 22, 2016, 03:43:58 pm
-
Is there a way to check if a fire has been extinguished by water?
-
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.
-
Fire's are not seeable if the fire has been created before a player has joined the game?
-
Fire's are not seeable if the fire has been created before a player has joined the game?
They aren't (tested now).
-
Thank you for confirming
-
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.
-
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.