natives.ADD SPHERE: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_SPHERE |parameters = Vec3 position, float radius |parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z) |parameter2 = float radius Sphere radius/size |usage = Draw a solid sphere at a specific world position in Vice City |notes = The sphere is rendered in a default pink color and does not accept custom RGB values. |return1 = void |returnFail1 = void |exampleJS = a...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|games = vc
|games = vc
|type = function
|type = function
|name = natives.DRAW_SPHERE
|name = natives.ADD_SPHERE
|parameters = Vec3 position, float radius
|parameters = Vec3 position, float radius
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
Line 12: Line 12:
|returnFail1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
|exampleJS = addEventHandler("OnDrawnHUD", function() {
     natives.DRAW_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
     natives.ADD_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});
});
}}
}}
64

edits

Navigation menu