[Include] Scripted Fire
#1

Hey everyone,
I just got the idea to create scripted fire yesterday. It's a small script without any timers (just using OnPlayerUpdate);

VIDEO:
[ame]http://www.youtube.com/watch?v=ruznp2DO1Y0[/ame]

Every fire you create got an amount of Health (you can chose how much)
Natives:
Code:
AddFire(Float:X, Float:Y, Float:Z, Firehealth);
DeleteFire(FireID);
DeleteAllFire();
IsValidFire(FireID);
GetClosestFire(playerid);
Installation:
1. Put #include <fire2> on top of your script
2. Put f_init(); in OnGameModeInit() and f_OnPlayerUpdate(playerid); in OnPlayerUpdate(playerid)
3. Create some commands for spawning fire ...

Extra:
You can uncomment #define Labels and #define Healthdown
Labels = 3D Labels above the fire showing it's health
Healthdown = Players and vehicles lose HP if they are near/in the fire

Pastebin link: http://pastebin.com/MJeGjmcR


Have fun
Reply


Messages In This Thread
Scripted Fire - by Sniperwolves - 04.08.2010, 10:57
Re: Scripted Fire - by Vince - 04.08.2010, 11:04
Re: Scripted Fire - by Sniperwolves - 04.08.2010, 11:05
Re: Scripted Fire - by Mauzen - 04.08.2010, 12:19
Re: Scripted Fire - by willsuckformoney - 04.08.2010, 12:25
Re: Scripted Fire - by Falcon Interceptor - 04.08.2010, 12:50
Re: Scripted Fire - by willsuckformoney - 04.08.2010, 13:05
Re: Scripted Fire - by Falcon Interceptor - 04.08.2010, 13:11
Re: Scripted Fire - by willsuckformoney - 04.08.2010, 13:25
Re: Scripted Fire - by juanrivas - 19.08.2010, 13:01
Re: Scripted Fire - by juanrivas - 20.08.2010, 14:30
Re: Scripted Fire - by MrDeath537 - 20.08.2010, 14:40
Re: Scripted Fire - by jasonnw666 - 20.08.2010, 14:59
Re: Scripted Fire - by royal_king - 20.08.2010, 15:08
Re: Scripted Fire - by playbox12 - 20.08.2010, 15:26
Re: Scripted Fire - by Cameltoe - 20.08.2010, 15:34
Re: Scripted Fire - by Cr0ssFir3 - 20.08.2010, 16:39
Re: Scripted Fire - by Las Venturas CNR - 20.08.2010, 16:44
Re: Scripted Fire - by Cameltoe - 20.08.2010, 16:48
Re: Scripted Fire - by juanrivas - 20.08.2010, 17:13
Re: Scripted Fire - by Las Venturas CNR - 20.08.2010, 19:22
Re: Scripted Fire - by nielsbon1 - 20.08.2010, 21:27
Re: Scripted Fire - by ihatetn931 - 25.08.2010, 21:50
Re: Scripted Fire - by [FSaF]Jarno - 28.05.2011, 10:36
Re: Scripted Fire - by GangsTa_ - 18.08.2011, 21:01
Re: Scripted Fire - by jameskmonger - 18.08.2011, 21:09
Re: Scripted Fire - by CaHbKo - 28.04.2012, 14:00
Re: Scripted Fire - by Vinnyy - 18.09.2012, 17:47
Re: Scripted Fire - by Kirollos - 06.10.2012, 21:50
Re: Scripted Fire - by Stanford - 22.12.2012, 09:01
Re: Scripted Fire - by zDevon - 09.02.2013, 16:39
Re: Scripted Fire - by Hayden_Almeida - 09.11.2015, 15:09
Re: Scripted Fire - by SkittlesAreFalling - 09.11.2015, 15:23
Re: Scripted Fire - by Oxygenated - 30.04.2017, 04:45
Re: Scripted Fire - by Sew_Sumi - 30.04.2017, 04:52
Re: Scripted Fire - by CantBeJohn - 02.05.2017, 07:57
Re: Scripted Fire - by Sew_Sumi - 02.05.2017, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)