You are viewing an old version of this page. Return to the latest version.
Version of 17:55, 12 December 2013 by I need to Update My Profile
Difference between revisions of "LUA:BlurVision"
(Created page with "= LUA Functions: IsEpic() = Checks to see if the given spawn is epic ==== Syntax ==== IsEpic(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is the s...") |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | + | |Name = BlurVision | |
| − | + | |Description = Blurs the vision of the given spawn | |
| − | == | + | |Param1 = Spawn |
| − | + | |Param1Desc = is the spawn who's vision we are blurring | |
| − | + | |Param2 = float | |
| − | + | |Param2Desc = is the intensity to blur it by | |
| − | = | + | |Example = |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | + | BlurVision(Spawn, 0.5) | |
| − | |||
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | + | |ExampleDesc = When the NPC is hailed it will blur the vision of the player | |
| − | When the NPC is hailed it will | + | |Notes = To return the vision to normal set it to 0 |
| + | }} | ||
Latest revision as of 12:20, 30 January 2021
LUA:AllFunctions - BlurVision
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Blurs the vision of the given spawn
Syntax
BlurVision(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (float)
- param1 is the spawn who's vision we are blurring
- param2 is the intensity to blur it by
Example
function hailed(NPC, Spawn)
BlurVision(Spawn, 0.5)
end
When the NPC is hailed it will blur the vision of the player
Notes
To return the vision to normal set it to 0