mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
removed 2 argument option and removed some defaults
This commit is contained in:
parent
9bcf2b7650
commit
35592fa0af
@ -4,8 +4,8 @@
|
||||
* Add a colored sphere at a specified point.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: ASL position to add sphere <ARRAY>
|
||||
* 1: Color of sphere <STRING>
|
||||
* 0: ASL position to add sphere. <ARRAY>
|
||||
* 1: Color of sphere. <STRING> (Default: Blue)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
@ -15,17 +15,11 @@
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
params [
|
||||
["_posASL", [0, 0, 0], [[]], [2,3]],
|
||||
["_color", "(1,0,0,0.5)", [""]]
|
||||
];
|
||||
|
||||
if (count _posASL < 3) then {
|
||||
_posASL pushBack 0;
|
||||
_posASL = ASLtoATL _posASL;
|
||||
_posASL set [2, 0];
|
||||
_posASL = ATLtoASL _posASL;
|
||||
};
|
||||
params [
|
||||
"_posASL",
|
||||
["_color", "blue", [""]]
|
||||
];
|
||||
|
||||
if (_color select [0,1] != "(") then {
|
||||
_color = switch (toLowerANSI _color) do {
|
||||
|
Loading…
Reference in New Issue
Block a user