removed 2 argument option and removed some defaults

This commit is contained in:
lambdatiger 2024-01-17 20:52:25 -06:00
parent 9bcf2b7650
commit 35592fa0af

View File

@ -4,8 +4,8 @@
* Add a colored sphere at a specified point. * Add a colored sphere at a specified point.
* *
* Arguments: * Arguments:
* 0: ASL position to add sphere <ARRAY> * 0: ASL position to add sphere. <ARRAY>
* 1: Color of sphere <STRING> * 1: Color of sphere. <STRING> (Default: Blue)
* *
* Return Value: * Return Value:
* None * None
@ -15,17 +15,11 @@
* *
* Public: No * Public: No
*/ */
params [
["_posASL", [0, 0, 0], [[]], [2,3]],
["_color", "(1,0,0,0.5)", [""]]
];
if (count _posASL < 3) then { params [
_posASL pushBack 0; "_posASL",
_posASL = ASLtoATL _posASL; ["_color", "blue", [""]]
_posASL set [2, 0]; ];
_posASL = ATLtoASL _posASL;
};
if (_color select [0,1] != "(") then { if (_color select [0,1] != "(") then {
_color = switch (toLowerANSI _color) do { _color = switch (toLowerANSI _color) do {