HS SPACEMSG

From HSpace

Jump to: navigation, search

HS_SPACEMSG()

  • HS_SPACEMSG(0, <uid>, <X>, <Y>, <Z>, <dist>, <msg>)
  • HS_SPACEMSG(1, <msg>)
  • HS_SPACEMSG(2, <msg>)

The HS_SPACEMSG function allows messages to be sent into space in a variety of ways. This can allow what is commonly referred to as "ship posing" such that players can type a command and have the ship send a message as if it were performing some action in space.

The first form of the function allows a wizard or HSpace object to send a message into the universe with the given <uid>, starting at the specified X, Y, and Z coordinates, and reaching all other HSpace objects within the specified <dist> range.

The second and third forms of the function allow an HSpace object to send a message from itself into space such that other objects with sensors receive the message. The second form sends a message to all HSpace objects with the source object on sensors, while the third form sends to all HSpace objects that have the source object IDENTIFIED on sensors. Thus, the third form is very useful for ship posing.

Ex: think hs_spacemsg(2, The Excalibur comes screaming in for the kill.)

Views
Personal tools