PlaySuspectLastSeen
From Liberty Unleashed Wiki
This function plays a 'suspect last seen' message.
Syntax
bool PlaySuspectLastSeen( player plr, Vector pos )
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.
function onPlayerCommand( player, cmd, text ) { if( cmd == "lastseen" ) { PlaySuspectLastSeen(player, player.Pos); } }
Notes
The event onPlayerCommand was used in this example. More info about them in corresponding pages.
Related Functions
- FindSound
- PlayFrontEndSound
- PlayFrontEndTrack
- PlaySuspectLastSeen
- Sound.Close
- Sound.Open
- Sound.Play
- Sound.Pause
- Sound.Stop
- StopFrontEndTrack