Search the Community
Showing results for tags 'expected'.
Found 3 results
-
Helo.This error is driving me nuts. Any ideas why this happens? : Steam Image <-- image _guardgroup = createGroup east; _base = [getMarkerPos current_task, 400, 3000, 40, 0, 0.5, 0, ["base_marker"], getMarkerPos current_task] call BIS_fnc_findSafePos; _guard = _guardgroup createUnit ["rhs_msv_emr_officer_armored", _base, [], 2, "NONE"];
- 2 replies
-
- error
- createunit
- (and 4 more)
-
Group name not recognised (type string, expected group)
lawman_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
A recurring problem that i seem to run into is I don't know how to use group names as group names when writing scripts. Let me explain: In the eden editor, I have set the name of a group; by opening the interface for the group (double click on the icon above group leader) and entering something in the 'callsign' field. However, if I now go to write a script that requires the name of that group, i can't seem to format it in such a way that the command will accept the name I have inputted. For example, here is a snippet from the mission: _group = "R Rustam 1 - Alpha"; _leader = leader _group; _passangers = _group - _leader; _leader assignAsDriver qrf_w1; {_x assignAsCargo qrf_w1} forEach _passangers; _group orderGetIn true; What i can't get to work is the leader command, because no matter how I format the group name it doesn't seem to want to accept it. I believe the following has been tried without success: _group = "R Rustam 1 - Alpha"; _group = "Rustam 1 - Alpha"; _group = R Rustam 1 - Alpha; _group = Rustam 1 - Alpha; -
Type Number, expected Control: error
lawman_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to set a checkbox as unchecked, but I get the error stating "type, number. Expected, control" I've checked the control idc and it matches what i've typed in the script...so I don't know how to get that "number" recognised as an idc. {_x ctrlSetChecked false;} forEach [2801,2802,2803]; I've also had a similar thing before where I was storing group names in an array, but was later unable to issue a command using that recalled group name because it was a "string" as opposed to a "group", even though tests showed that the group name matched the string exactly. Thanks, Law