Jump to content

MiXeR

Member
  • Content Count

    25
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About MiXeR

  • Rank
    Private First Class

core_pfieldgroups_3

  • Interests
    poker, web coding
  • Occupation
    poker
  1. Is selectWeapon command works for AI? Can't force AI soldier switch weapon to secondary. (stinger or javelin) Looks like a bug. 1.04.60295
  2. Thanks for you answer Silola, but ai still doesn't take stinger. :( Maybe it's a bug?
  3. Hi there. I have a trouble with selectWeapon command. I placed 2 soldiers with stinger. 1 - is me, 2 - is ai. When i trying to switch weapon to Stinger (s1 selectWeapon "Stinger") nothing happens. It only works for player. I tryed also "s1 action ["SWITCHWEAPON",s1,s1,2]" but ai still stayng without any moves. (for player this action works fine) I also tryed to remove all weapons and add only stinger - but still fail. How to force ai switch to secondary weapon? Thanks.
  4. How to select unit features in script? I mean "In air", "In group".
  5. It returns "any". I trying to write a script to move created group: _grppos = _this select 0; _grpfact = _this select 1; _grptype = _this select 2; _grpname = _this select 3; _wppos = _this select 4; _wptype = _this select 5; _wpspeed = _this select 6; _wpform = _this select 7; _wpt = _this select 8; switch (_grpfact) do { case "USMC": {_side = "west"}; case "CDF": {_side = "west"}; case "RU": {_side = "east"}; case "INS": {_side = "east"}; case "GUE": {_side = "resistance"}; }; _grp = [getPos player, west, (configFile >> "CfgGroups" >> _side >> _grpfact >> _grptype >> _grpname)] call BIS_fnc_spawnGroup; _wp = _grp addWaypoint [_wppos, 0]; _wp setWaypointType _wptype; _wp setWaypointSpeed _wpspeed; _wp setWaypointFormation _wpform; _wp setWaypointTimeout _wpt; But, if i use: _grppos = _this select 0; _grpfact = _this select 1; _grptype = _this select 2; _grpname = _this select 3; _wppos = _this select 4; _wptype = _this select 5; _wpspeed = _this select 6; _wpform = _this select 7; _wpt = _this select 8; _side = "west"; _grp = [getPos player, west, (configFile >> "CfgGroups" >> _side >> _grpfact >> _grptype >> _grpname)] call BIS_fnc_spawnGroup; _wp = _grp addWaypoint [_wppos, 0]; _wp setWaypointType _wptype; _wp setWaypointSpeed _wpspeed; _wp setWaypointFormation _wpform; _wp setWaypointTimeout _wpt; ... all works fine. What's wrong? :confused:
  6. What's wrong in this code? _grpfact = "USMC"; switch (_grpfact) do { case "USMC": {hint "Ok"; _side = "west"}; case "CDF": {_side = "west"}; case "RU": {_side = "east"}; case "INS": {_side = "east"}; case "GUE": {_side = "resistance"}; }; hint _side; hint _side; - doesn't work.
  7. _grp = [position spawngroup, side player, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Infantry" >> "USMC_InfSquad")] call BIS_fnc_spawnGroup _wp = _grp addWaypoint [getpos guy, 0]; _wp setWaypointType "MOVE"; _wp setWaypointSpeed "FULL";
  8. HELL YEAH, i did it. :D [getPosASL player, side player, ["USMC_Soldier_SL", "USMC_Soldier_AR"]] call BIS_fnc_spawnGroup In the "[]" put list of infantry units. But i still don't understand how to use "- amount of characters (Number)" and "- CfgGroups entry (Config)"
  9. Vehicle spawn: [getPosASL guy, 0, "M1A1", group player] call BIS_fnc_spawnVehicle
  10. So.. how should it be? I don't understand.
  11. hint format["%1", currentWeapon mytank] mytank - name of tank. It won't work with hint format["%1", currentWeapon player] or hint format["%1", currentWeapon this]
  12. Hi there. I trying to spawn an infantry group by this: [getPosASL player, side player, "USMC_InfSquad"] call BIS_fnc_spawnGroup But nothing happen. Spawning vehicles works fine. Description: Function which handles the spawning of a dynamic group of characters. The composition of the group can be passed to the function. Alternatively a number can be passed and the function will spawn that amount of characters with a random type. Parameter(s): _this select 0: the group's starting position (Array) _this select 1: the group's side (Side) _this select 2: can be three different types: - list of character types (Array) - amount of characters (Number) - CfgGroups entry (Config) _this select 3: (optional) list of relative positions (Array) _this select 4: (optional) list of ranks (Array) _this select 5: (optional) skill range (Array) _this select 6: (optional) ammunition count range (Array) _this select 7: (optional) randomization controls (Array) 0: amount of mandatory units (Number) 1: spawn chance for the remaining units (Number) _this select 8: (optional) azimuth (Number) Returns: The group (Group)
×