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: IsEpic() =
+
= LUA Functions: BlurVision() =
Checks to see if the given spawn is epic
+
Blurs the vision of the given spawn
  
 
==== Syntax ====
 
==== Syntax ====
IsEpic(param1)
+
BlurVision(param1, param2)
  
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Spawn)
+
; Required - ''param1'' (Spawn), ''param2'' (float)
: ''param1'' is the spawn to check
+
: ''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)
     if IsEpic(NPC) then
+
     BlurVision(Spawn, 0.5)
        Say(NPC, "I am epic!")
 
    end
 
 
end
 
end
 
</pre>
 
</pre>
  
When the NPC is hailed it will respond if it is epic
+
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