Problem with bomb

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
sg.Pepper
Second Lieutenant
Posts: 152
Joined: Tue Jan 13, 2004 2:47 pm
Location: Czrch Republic
Contact:

Problem with bomb

Post by sg.Pepper »

I have 4 bombs in map and 4. bomb does not work.
Concole say: Script error
while ($doorabomb.exploded != 1)
CANNOT CAST 'ARRAY' TO LISTENER
Can I have 4 or more bombs in bot maps?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes but you shouldn't give 2 of them the same targetname :wink:

Or, if you desperately want them to have the same targetname, you could do:

Code: Select all

while ($doorabomb[1].exploded != 1)
  waitframe

while ($doorabomb[2].exploded != 1)
  waitframe
Image
sg.Pepper
Second Lieutenant
Posts: 152
Joined: Tue Jan 13, 2004 2:47 pm
Location: Czrch Republic
Contact:

Post by sg.Pepper »

Thanks
already it works.
error was in script:
4 bombs in map
targets to destroy = 3 :lol:
Post Reply