Home   Help Search Login Register  

Author Topic: type group expected object error  (Read 2264 times)

0 Members and 1 Guest are viewing this topic.

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
type group expected object error
« 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.
TS3 IP: tor.zebgames.com:9992

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: type group expected object error
« Reply #1 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.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.