OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Ironman on 03 Jan 2009, 10:39:54

Title: type group expected object error
Post by: Ironman on 03 Jan 2009, 10:39:54
code:
Code: [Select]
{_x action ["GETOUT", heli1];unassignVehicle _x} forEach units group squad1;

error:
Code: [Select]
Error in expression <eli1];unassignVehicle _x} forEach units group squad1;
Sleep 25;

_scr = [heli1,[>
  Error position: <group squad1;
Sleep 25;

_scr = [heli1,[>
  Error group: Type Group, expected Object

For some reason I have such a hard time manipulating mandobles scripts even though that code is pretty much exactly what he has.... squad1 is a group name not a single person... that is the only difference but it shouldnt be causing an error.
Title: Re: type group expected object error
Post by: h- on 03 Jan 2009, 11:49:01
If the squad is already a group (as in squad1=group this, or sumtin) don't use the group command, just forEach units squad1.