27.02.2010, 02:20
Here's the latest version:
I highly recommend updating if you are using streamed 3D text labels at all.
The new area detection natives and callbacks are as follows:
Usage should be almost identical to checkpoints. Two-dimensional areas (circles and rectangles) as well as three-dimensional areas (spheres and cubes) can be created, returning an area ID. There's also no distance parameter as areas are not technically streamed, so an unlimited number can "visible" at any one time.
I tested it as thoroughly as I could, but there might still be bugs, so let me know if you find any.
Quote:
v2.3.7 - Fixed 3D text label crash - Optimized more streaming code - Resolved some checkpoint problems - Added area detection natives and callbacks |
The new area detection natives and callbacks are as follows:
Quote:
native CreateDynamicCircle(Float ![]() ![]() native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicSphere(Float ![]() ![]() native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1); native DestroyDynamicArea(areaid); native IsValidDynamicArea(areaid); native TogglePlayerDynamicArea(playerid, areaid, toggle); native TogglePlayerAllDynamicAreas(playerid, toggle); native IsPlayerInDynamicArea(playerid, areaid); native DestroyAllDynamicAreas(); native CountDynamicAreas(); |
Quote:
forward OnPlayerEnterDynamicArea(playerid, areaid); forward OnPlayerLeaveDynamicArea(playerid, areaid); |
I tested it as thoroughly as I could, but there might still be bugs, so let me know if you find any.