Jump to content

Scripting a cargo sweep


Recommended Posts

Both SWEEP and LAY take an object class


SWEEP [region] [object_type]




SWEEP earthz 4


SWEEP earthz


LAY earthz 10


LAY earthz


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

  • Create New...