Squirrel/Server/Functions/Blips/Remove
From Liberty Unleashed Wiki
(Difference between revisions)
m (moved Squirrel/Functions/Blips/Remove to Squirrel/Server/Functions/Blips/Remove: Server-side function) |
(→Example) |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( pPlayer, szCommand, szText ) | |
+ | { | ||
+ | if ( szCommand == "remove" ) | ||
+ | { | ||
+ | local pBlip = FindBlip( 0 ); | ||
+ | if ( pBlip ) pBlip.Remove(); | ||
+ | } | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | The event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] was used in in this example. More info about this in the corresponding page. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Blips}} | {{Squirrel/Server/Functions/Blips}} |
Revision as of 19:32, 28 September 2010
This Blip class method removes the blip.
Syntax
bool Blip.Remove()
Arguments
- none
Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "remove" ) { local pBlip = FindBlip( 0 ); if ( pBlip ) pBlip.Remove(); } }
Notes
The event onPlayerCommand was used in in this example. More info about this in the corresponding page.