6,834
edits
PerikiyoXD (talk | contribs) m (Typo: resouce -> resource) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onResourceStart | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = a resource starts | ||
| | |arg1 = Resource resource The resource which has started. | ||
|note = This event can be used with [[bindEventHandler|bindEventHandler]]. | |||
|cancel = true | |||
| | |||
|exampleLua = addEventHandler("OnResourceStart", function(event,resource) | |exampleLua = addEventHandler("OnResourceStart", function(event,resource) | ||
outputChatBox("Resource ".. resource.name .." has started.", COLOUR_RED) | outputChatBox("Resource ".. resource.name .." has started.", COLOUR_RED) | ||
end) | end) | ||
}} | }} |
edits