is it possible to disable certain bots spawnpoints???

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

Moderator: Moderators

Post Reply
divaid
Corporal
Posts: 46
Joined: Fri Nov 21, 2003 10:27 am
Location: pesse (NL)
Contact:

is it possible to disable certain bots spawnpoints???

Post by divaid »

this would be a really cool feature
van Wassem entertainment© - entertainment on a degreement never imagined
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yup simply set the following variable

[spawnpos].disablespawn = 1

Identification of the spawnpos may turn out to be expedient, as the targetname has to be alliesspawn or axisspawn. You can however set an additional key in the editor (.e.g. $tag) and check all spawnpoints for this key.

Example:

Code: Select all

for(local.i = 1; local.i <= $alliesspawn.size; local.i++)
{
  if($alliesspawn[local.i].tag == "tobedisabled")
    $alliesspawn[local.i].disablespawn = 1
}
Image
divaid
Corporal
Posts: 46
Joined: Fri Nov 21, 2003 10:27 am
Location: pesse (NL)
Contact:

Post by divaid »

yes but is it possible to do this automatically when walking in your map. For example you run up the beach, and you finally mke it in the bunkers. then the axis can't spawn here anymore. (by a trigger or something)
van Wassem entertainment© - entertainment on a degreement never imagined
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes you can execute above code at any time you wish. The OpCenter maps uses this kind of spawn point 'moving' as well (when the first bomb is blown, the bots spawn at a higher floor).
Image
Post Reply