Jump to content

Scripting a cargo sweep


Joaquin
 Share

Recommended Posts

Both SWEEP and LAY take an object class

code:


SWEEP [region] [object_type]

e.g.

events

!collect_cargo1

SWEEP earthz 4

!collect_cargo2

SWEEP earthz

!lay_mines1

LAY earthz 10

!lay_mines2

LAY earthz

endevents


The default class for SWEEP is 4 (cargo pods). If you pass it 10 (mines), then this will order the unit to destroy (not collect) detected mines.

The default class for LAY is 10 (mines)

object_type is the class id in objclass.scr

Link to comment
Share on other sites

So that's how you do it! I tried using "cargopod" and didn't get anywhere so I came to the incorrect conclusion that sweep was limited to types of mines. Thanks Derek, now I can give the player a few more fits on completing that scenario I keep polishing.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...