Jump to content
3000AD Forums
Supreme Cmdr

Difference between DOCK and DOCKWITH commands

Recommended Posts

The DOCK and DOCKWITH commands do different things.

DOCK - tells the object to dock with another object. The option 'time' parameter tells the object to auto-launch after that time expires. This is usually used for crafts docking with stations, but will work for any actor docking with another.

DOCKWITH - tells the object to dock with another object. The optional 'vanish' tells the game engine to remove it after it has docked. While the optional "deactivate" tells the game engine to deactivate it (i.e. not do any further rendering or AI processing for it) so that you can "re-activate" it later with the ACTIVATE command in an event. This is usually used for personnel docking with vehicles and such, but will work for any actor docking with another.

Also, the !docked event checks if the current object (for which the !dock event is checked) has docked with a "target" object.

e.g.

[ai]
.f1,100,100,100,100,100,100,0
start inactive near cronusz^jmp-23 500 cronus
stop
events 1
!beginl1
activate this
!startup
dock orion
!detect orion
say "GCV-WILDSTAR: ORION, WE ARE REQUESTING DOCKING CLEARANCE"
signal f1_dock_request
!docked orion
signal f1_docked
endevents
#
.orion
events 1
!f1_dock_request
say "ORION: DOCKING CLEARANCE GRANTED WILDSTAR. PROCEED TO BAY ONE"
f1_docked
say "ORION: GCV-WILDSTAR HAS DOCKED"
endevents[/code]

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

×