btshowstatus_ref()

btmux-0.6-rc4/game/text/wizhelp/cat_functions/btshowstatus_ref() · 865 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& btshowstatus_ref()
 
  Syntax: btshowstatus_ref(<UnitRef>,<targetplayer>,<location>)

  This function displays the output of the 'critstatus <location>' 
  command on a reference unit, ie the default templated unit, to 
  <targetplayer>.
 
  The function will return 1 if successful.
 
	Note: This function does not verify if <targetplayer> is connected 
	to the mux.
 
  Error Messages:

  * If <UnitRef> is not a valid unit the function returns #-1 NO SUCH 
    MECH
  * If <targetplayer> is not a player the function returns #-1
  * If <location> is not valid the function returns Invalid Section! 
 
  Example:
  Given that EXT-4D is valid mech reference and #99 is a player
 
  > think btshowcritstatus_ref(ext-4d,#99,ct)
  1
 
  Player #99 will see the same output as if he/she had run the command 
  'critstatus ct' in an EXT-4D 

Site Stats

Snippets: 1791
Codebases: 571