natives.GENERATE RANDOM FLOAT IN RANGE: Difference between revisions

Add ScriptItem documentation from GTA VC SCM decompile
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
Line 4: Line 4:
|type = function
|type = function
|name = natives.GENERATE_RANDOM_FLOAT_IN_RANGE
|name = natives.GENERATE_RANDOM_FLOAT_IN_RANGE
|parameters = int ped, Vec2 position
|parameters = float min, float max
|parameter1 = int ped Target character in the game world.
|parameter1 = float min Minimum corner of the area.
|parameter2 = Vec2 position The position vector.
|parameter2 = float max Maximum corner of the area.
|usage = execute random float in range routine.
|usage = generates a random floating-point number between two values
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
}}
}}
1,615

edits