15.12.2014, 15:53
(
Последний раз редактировалось MacT; 16.12.2014 в 13:15.
)
Hey SA-MP Forums!
I basically think how make its possible too create multiple fires objects on house area or saved zone on arrays. Like Gasstatsion.
1. I started think its possible, if I use fire object with createdynamicobjectex like looping timer withmake new object near old one. Like in real life.
3. Timer with function what checks DistanceBetweenObects and if 0 when make new object else takes old object ppos and make new to near.
Regards,
MacT!
I basically think how make its possible too create multiple fires objects on house area or saved zone on arrays. Like Gasstatsion.
1. I started think its possible, if I use fire object with createdynamicobjectex like looping timer withmake new object near old one. Like in real life.
pawn Код:
stock RandPosInArea( Float: minx, Float: miny, Float: maxx, Float: maxy, &fDestX, &fDestY )
{
new
iMin, iMax,
Float:mul = floatpower(10.0, 4)
;
iMin = floatround(minx * mul);
iMax = floatround(maxx * mul);
fDestX = float(random(iMax - iMin) + iMin) / mul;
iMin = floatround(miny * mul);
iMax = floatround(maxy * mul);
fDestY = float(random(iMax - iMin) + iMin) / mul;
}
Regards,
MacT!