Difference between revisions of "LUA:SetGridID"

(Created page with "{{PageHeaderChild|LUA|SetGridID}} = LUA Functions: SetGridID() = Sets the grid id for the given spawn ==== Syntax ==== SetGridID(param1, param2) ==== Parameters ==== ; Requi...")
 
(No difference)

Latest revision as of 19:46, 28 January 2016

LUA - SetGridID

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: SetGridID()

Sets the grid id for the given spawn


Syntax

SetGridID(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the spawn we want to set
param2 is the grid ID


Usage

function FinishedMove(Spawn)
     SetGridID(Spawn, 1234567)
end

When this function is called it will set the grid ID of the spawn to 1234567


Notes

Should not be used, and will not have an effect, on a player