6,834
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onResourceStop | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = a resource stops | ||
| | |arg1 = Resource resource The resource which has stopped. | ||
|arg2 = bool stoppingForRestart The status of whether the resource is restarting. | |||
|cancel = true | |||
| | |||
|exampleLua = addEventHandler("OnResourceStop", function(event,resource,stoppingForRestart) | |exampleLua = addEventHandler("OnResourceStop", function(event,resource,stoppingForRestart) | ||
outputChatBox("Resource ".. resouce.name .." has stopped."..(stoppingForRestart and " (restarting)" or ""), COLOUR_RED) | outputChatBox("Resource ".. resouce.name .." has stopped."..(stoppingForRestart and " (restarting)" or ""), COLOUR_RED) | ||
end) | end) | ||
}} | }} |
edits