multiple triggers

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

multiple triggers

Post by fuhrer »

how do i make a bunch of triggers with the same targetname but different number nottriggerable at once.

i.e.

this_trigger_1 nottriggerable
this_trigger_2 nottriggerable
this_trigger_3 nottriggerable

i basically want

this_trigger_(1 2 & 3) nottriggerable
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

for(local.i=1;local.i <= 3;local.i++)
{
$("this_trigger_" + local.i) nottriggerable
}

typo fixed second local.i was written as local.1
Last edited by bdbodger on Mon Jun 07, 2004 2:09 pm, edited 1 time in total.
Image
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

Post by fuhrer »

cheers m8
Post Reply