Difference between revisions of "LUA:MakeRandomFloat"

(Created page with "= LUA Functions: MakeRandomFloat() = Sends the given player to their bind point. ==== Syntax ==== MakeRandomFloat(min, max) ==== Parameters ==== ; ''param1'' MinVal : ''par...")
 
 
Line 1: Line 1:
 
= LUA Functions: MakeRandomFloat() =
 
= LUA Functions: MakeRandomFloat() =
Sends the given player to their bind point.
+
Returns a random float
  
  
Line 8: Line 8:
 
==== Parameters ====
 
==== Parameters ====
 
; ''param1'' MinVal
 
; ''param1'' MinVal
: ''param2'' MaxVal
+
; ''param2'' MaxVal
  
  

Latest revision as of 12:33, 1 March 2021

LUA Functions: MakeRandomFloat()

Returns a random float


Syntax

MakeRandomFloat(min, max)

Parameters

param1 MinVal
param2 MaxVal


Usage

function cast(Caster, Target)
    local Buff = MakeRandomFloat(1.1, 2.2)
    AddSpellBonus(Target, 600, Buff)
end