Author Topic: Help w/ editing Script_FireFight  (Read 516 times)

Code: [Select]
if(%brick.getdatablock().getname()!$="brick16x16fData"  &&    ..more bricks..    && %brick.getdatablock().getname()!$="brick64x64fData")
I'm  trying to make it so that the fire wand from Script_FireFight cannot be used on certain bricks, but I want to include bricks from an entire category rather than listing them off one by one as it was already done. What would I replace this code with so that the fire wand cannot be used with any brick under Baseplates?

%brick.getDatablock().category !$= "Baseplates" should do it.
If not, dump a bricks data-block, or check the code file of one to find the proper name of the category field.
Nvm, that is it.


%brick.getDatablock().category !$= "Baseplates" should do it.
If not, dump a bricks data-block, or check the code file of one to find the proper name of the category field.
Nvm, that is it.
Thanks, it worked.

locking