Home   Help Search Login Register  

Author Topic: "_x domove flee1" foreach thislist  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
"_x domove flee1" foreach thislist
« on: 22 Oct 2002, 11:21:50 »
I want to make all the east soldiers move to a gamelogic called flee1. But appears an error on the top of the screen, something like: "type object. Expected string". Any idea on how to solve it?
???

Offline DrStrangelove

  • Members
  • *
  • Mr.Creative
Re:"_x domove flee1" foreach thislist
« Reply #1 on: 22 Oct 2002, 12:01:48 »
I did a little test with the same setup.

I got the error: Type object, expected ARRAY.

That is because 'domove' wants a position array (x,z,y), not the name of the gamelogic (which is the object).

To fix it:
"_x doMove getpos flee1" forEach thislist

 ;D

seanver

  • Guest
Re:"_x domove flee1" foreach thislist
« Reply #2 on: 22 Oct 2002, 12:04:43 »
That was!! Thank you, sometimes I forget everything  I know

thx m8