Jump to content
3000AD Forums
Sign in to follow this  
Joaquin

Scripting a cargo sweep

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×