Home   Help Search Login Register  

Author Topic: Foreach this list, bla bla...  (Read 1283 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Foreach this list, bla bla...
« on: 19 Jun 2005, 22:51:58 »
I remember that there was some function to example set everyone's behaviour to aware in some trigger area ::) I dont remember what that function was :-[ I remember it was something like "x_ setBehaviour ""aware""" forEach this list or something, but I'm not sure.
Can someone tell me it?

EDIT: Oh, and remember to click me >:D
« Last Edit: 19 Jun 2005, 22:53:30 by Serial Killer »

qqqqqq

  • Guest
Re:Foreach this list, bla bla...
« Reply #1 on: 19 Jun 2005, 23:32:41 »
_x

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Foreach this list, bla bla...
« Reply #2 on: 19 Jun 2005, 23:33:36 »
Code: [Select]
{_x setbehaviour "aware"} foreach units thislist
i think.

incidentally, i've followed the link, and don't think much of it. don't advertise it in a post in future, yes? keep it ofpec related.

Serial Killer

  • Guest
Re:Foreach this list, bla bla...
« Reply #3 on: 19 Jun 2005, 23:39:50 »
Code: [Select]
{_x setbehaviour "aware"} foreach units thislist
i think.

incidentally, i've followed the link, and don't think much of it. don't advertise it in a post in future, yes? keep it ofpec related.

Sorry :-[

And thanks!

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Foreach this list, bla bla...
« Reply #4 on: 19 Jun 2005, 23:53:54 »
I thought that link was halarious.
I liked it.

Although... yes totally unrelated to OFPEC.
« Last Edit: 19 Jun 2005, 23:54:32 by RujiK »
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Foreach this list, bla bla...
« Reply #5 on: 20 Jun 2005, 16:55:03 »
I believe units should be dropped from:
{_x setbehaviour "aware"} foreach units thislist


thislist is already an array so
{_x setbehaviour "aware"} foreach thislist

Should work - unless I am going senile.  Perhaps I have had my brains eaten.
« Last Edit: 20 Jun 2005, 16:56:24 by THobson »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Foreach this list, bla bla...
« Reply #6 on: 20 Jun 2005, 17:06:28 »
you and me both THobson ;)

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Foreach this list, bla bla...
« Reply #7 on: 20 Jun 2005, 17:09:23 »
Quote
unless I am going senile.  Perhaps I have had my brains eaten.

Nah you're right Thobson;

thislist or list this or list triggername is already an array and
your solution will work.

units xxx is only needed in combination with a unit/group

like:

units man1

units player

units group player

units leader groupA

units leader group player

units this


why group?

Because group is also a unit and not an array (even tho the more logical would be if group would represent an array but then again other commands like move or setbehaviour etc. wouldn't work anymore for group).

btw - me either don't find the link funny to be mentioned,
especially in the case that you want serious answers on
your question.

What would you then say if the answer would be like:

ah and don't forget to follow this link to find your answer there  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted