natives.ADD SPHERE: Difference between revisions

Add ScriptItem documentation from GTA VC SCM decompile
No edit summary
(Add ScriptItem documentation from GTA VC SCM decompile)
Line 4: Line 4:
|type = function
|type = function
|name = natives.ADD_SPHERE
|name = natives.ADD_SPHERE
|parameters = Vec3 position, float radius
|parameters = float arg0
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
|parameter1 = float arg0 Description
|parameter2 = float radius Sphere radius/size
|usage = add sphere in Vice City
|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
|return1 = void
|returnFail1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
    natives.ADD_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});
}}
}}
1,615

edits