Changed sphere size and added return based on usage in dev_trackHitBox

This commit is contained in:
lambdatiger 2024-03-02 18:00:11 -06:00
parent f57ac94325
commit 8a2f40c360

View File

@ -8,7 +8,7 @@
* 1: Color of sphere <STRING> (default: "blue") * 1: Color of sphere <STRING> (default: "blue")
* *
* Return Value: * Return Value:
* None * The created sphere object <OBJECT>
* *
* Example: * Example:
* [getPosASL player, "red"] call ace_frag_fnc_dev_sphereDraw; * [getPosASL player, "red"] call ace_frag_fnc_dev_sphereDraw;
@ -34,6 +34,7 @@ if (_color select [0,1] != "(") then {
}; };
private _colorString = "#(argb,8,8,3)color" + _color; private _colorString = "#(argb,8,8,3)color" + _color;
private _sphere = createVehicle ["Sign_Sphere25cm_F", ASLtoATL _posASL, [], 0, "CAN_COLLIDE"]; private _sphere = createVehicle ["Sign_Sphere10cm_F", ASLtoATL _posASL, [], 0, "CAN_COLLIDE"];
_sphere setObjectTextureGlobal [0, _colorString]; _sphere setObjectTextureGlobal [0, _colorString];
GVAR(dev_eventSpheres) pushBack _sphere; GVAR(dev_eventSpheres) pushBack _sphere;
_sphere