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.
|
* 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user