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...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: BlurVision() = |
| − | + | Blurs the vision of the given spawn | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | BlurVision(param1, param2) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn) | + | ; Required - ''param1'' (Spawn), ''param2'' (float) |
| − | : ''param1'' is the spawn to | + | : ''param1'' is the spawn who's vision we are blurring |
| + | : ''param2'' is the intensity to blur it by | ||
| Line 14: | Line 15: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | + | BlurVision(Spawn, 0.5) | |
| − | |||
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | When the NPC is hailed it will | + | When the NPC is hailed it will blur the vision of the player |
| + | |||
| + | == Notes == | ||
| + | To return the vision to normal set it to 0 | ||
Revision as of 18:01, 12 December 2013
LUA Functions: BlurVision()
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
Usage
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