Jump to content

Recommended Posts

Posted

Back again,

Is it possible to script an actor to perform a cargo sweep? I didn't find anything in the archives, the bcmgvcf, and bcmvcf. The only SWEEP I am aware of refers to minesweeping.

Thanks

Joaquin

Posted

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

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...