Introduction

Installation

Configuring Objects

Spacecalls

Events

Coordinates

Tips & Tricks

Portable Space EngineBuilder's Guide

Please send comments to Mark Cooke <mpc@star.sr.bham.ac.uk> or vspace@geocities.com

>Spacecalls: Communication Console Calls

SpacecallReturn ValueObjectShip
comm_freq(Int channel)Integer  X
This function returns the communications frequency of the selected channel. Each ship has 6 channels, labled 0 through 5.
comm_label(Int channel)String  X
This function returns the label of the selected channel. Each ship has 6 channels, labled 0 through 5. The label canbe changed using the comm_label_channel spacecall.
comm_label_channel(Int channel, String label)  X
This command changes the label of the selected channel. A channel label can be upto 16 characters long.
comm_send(Int channel, String message)  X
This command sends a message on the chosen channel. The channel must have its frequency set using comm_set_channel before this function will broadcast a message.
comm_set_channel(Int channel, Integer frequency)  X
This command changes the frequency of the selected channel. No messages can be sent on a channel, until a frequency is selected.
console_emit(Integer OrFlags, Integer AndFlags, String message)  X
This command sends the specified message to the consoles selected by the flags. A console is emitted to if it has all of the flags specified in the AndFlags mask, and at least one of the flags specified in the OrFlags mask. Details of the masks used are to be found in the source. This function will go away with the introduction of the new messaging module.


Last modified: 15th March 1998