random fires
#1

Hey, does anyone know how to script random fires on houses, or buildings? Also is it even possible?
Reply
#2

yes

pawn Код:
#define MAX_FIRES 2
new Float:FireLocations[MAX_FIRES][3]=
{
    {0,0,0},
    {0,0,0}
}
public Function()
{
    new fire=random(MAX_FIRES);
    CreateObject(fire_model,FireLocations[fire][0],FireLocations[fire][1],FireLocations[fire][2],...);
}
Reply
#3

where would the coords go?
Reply
#4

pawn Код:
new Float:FireLocations[MAX_FIRES][3]= // Possibly here, not sure...
{
    {0,0,0}, // They would go here if I am not mistaken
    {0,0,0} // And here!
}
Reply
#5

Hmm, I'm thinking of making a new GM and this is why I want this so that it gives the FD a job when people dont act out their injuries
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)