Fire System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fire System (
/showthread.php?tid=163627)
Fire System -
robert4049 - 28.07.2010
Okay some objects have fire on them and i was thinking how would it go for let's say i have 5 random maps and each one of those was a house fire. And every 15-30 minutes those objects would be created and it would send a faction a message saying All Units Respond To A Structure Fire [A Check Point Has Been Added To Your Radar] Is can someone show me a rough draft of something like this
Re: Fire System -
Falcon Interceptor - 28.07.2010
I'm sure you need some timers.
But I dont know for sure. I can't script
Hope that helped
Re: Fire System -
ikey07 - 28.07.2010
Well, I made something like that with SmokeMaker object from club, add some timer I suggest random time.
Like on GameModeInit add timer
FireTimer = SetTimer("FireIsOn",random(300000)+200000,0);
public FireIsOn()
{
SendMessage
CreateObjects at house entrance
Set new timer for next fire
}
Re: Fire System -
Steven82 - 28.07.2010
Quote:
Originally Posted by ikey07
Well, I made something like that with SmokeMaker object from club, add some timer I suggest random time.
Like on GameModeInit add timer
FireTimer = SetTimer("FireIsOn",random(300000)+200000,0);
public FireIsOn()
{
SendMessage
CreateObjects at house entrance
Set new timer for next fire
}
|
Yup that should be correct.
Re: Fire System -
robert4049 - 28.07.2010
Okay and then how would the object delete?