PlaySuspectLastSeen

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function plays a 'suspect last seen' message.

Syntax

  1. bool PlaySuspectLastSeen( player plr, Vector pos )
  1. bool PlaySuspectLastSeen( player plr, float x, float y, float z )

Arguments

  • plr - The player to play the sound for
  • pos - The position of where the suspect was last seen
  • x, y, z - The position of where the suspect was last seen as floats

Example

This code will play the "suspect last seen" message when they use the '/lastseen' command.

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if( cmd == "lastseen" )
  5. {
  6. PlaySuspectLastSeen(player, player.Pos);
  7. }
  8. }
  9.  

Notes

The event onPlayerCommand was used in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox