"For loop", to make notsolids script error.
Posted: Thu Feb 13, 2003 11:31 am
I'm working on an SP map for AA, and I want to make a loop that will set certain brushes to notsolid. I have made them script_objects and named them notsolid1, notsolid2, notsolid3, etc. I'm using the following code:
I keep getting a script error:
^~^~^ Script Error: command 'notsolid' applied to NULL listener
How can I make it target $notsolid1,2,3 etc instead of $notsolid which doesn't exsist.
Code: Select all
main:
exec global/loadout.scr "maps/test_drive.scr"
level waittill prespawn
//SET NON SOLIDS
waitthread nonSolids 3
level waittill spawn
level.script = "maps test_drive.scr"
end
//SET NON SOLIDS THREAD
nonSolids local.amount:
for (local.i = 1; local.i <= local.amount; local.i++) {
$nonsolid[local.i] notsolid
}
end^~^~^ Script Error: command 'notsolid' applied to NULL listener
How can I make it target $notsolid1,2,3 etc instead of $notsolid which doesn't exsist.