natives.DRAW CORONA: Difference between revisions

(Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_CORONA |parameters = Vec3 position, float radius, int type, int flare, int r, int g, int a |parameter1 = Vec3 position World coordinates where the corona is drawn (x, y, z) |parameter2 = float radius Corona radius/size (1.0 , 1.5 , 2.0) |parameter3 = int type Corona style (available 0–8) |parameter4 = int flare Lensflare option (0 = none, 1 = yellow, 2 = white) |parameter5 = int r Red co...")
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|type = function
|type = function
|name = natives.DRAW_CORONA
|name = natives.DRAW_CORONA
|parameters = Vec3 position, float radius, int type, int flare, int r, int g, int a
|parameters = Vec3 position, float value, int param3, int param4, int param5, int param6, int flag
|parameter1 = Vec3 position World coordinates where the corona is drawn (x, y, z)
|parameter1 = Vec3 position World coordinates (x, y, z).
|parameter2 = float radius Corona radius/size (1.0 , 1.5 , 2.0)
|parameter2 = float value Value.
|parameter3 = int type Corona style (available 0–8)
|parameter3 = int param3 Param3.
|parameter4 = int flare Lensflare option (0 = none, 1 = yellow, 2 = white)
|parameter4 = int param4 Param4.
|parameter5 = int r Red component (0–255)
|parameter5 = int param5 Param5.
|parameter6 = int g Green component (0–255)
|parameter6 = int param6 Param6.
|parameter7 = int a Alpha (0–255; 0 invisible, 255 fully visible)
|parameter7 = int flag Flag value (0 or 1).
|usage = Draw a corona (light halo) at a specific world position in Vice City, with optional lensflare
|usage = draws corona
|notes = Type selects the corona style (0–8). Flare is independent and supports three values: none, yellow, white. Color is defined by R and G only in this implementation; use alpha to control opacity.
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
    // Corona: position, radius, type, flare, R, G, A (7 params)
    natives.DRAW_CORONA(new Vec3(-592.0, 670.0, 11.0), 2.0, 2, 0, 0, 190, 100);  // type=2, flare=none, cyan-ish via R/G, semi-transparent
    natives.DRAW_CORONA(new Vec3(-600.0, 675.0, 11.0), 1.5, 3, 1, 255, 255, 200); // type=3, flare=yellow
    natives.DRAW_CORONA(new Vec3(-605.0, 665.0, 11.0), 1.0, 5, 2, 255, 128, 255); // type=5, flare=white
});
}}
}}

Latest revision as of 17:40, 14 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.DRAW_CORONA(Vec3 position, float value, int param3, int param4, int param5, int param6, int flag)
The natives.DRAW_CORONA function is used to draws corona.

Parameters

1) Vec3 position World coordinates (x, y, z).
2) float value Value.
3) int param3 Param3.
4) int param4 Param4.
5) int param5 Param5.
6) int param6 Param6.
7) int flag Flag value (0 or 1).

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.