Interface administrators, moderator
2,591
edits
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|offline = false | |||
|endpoint = shared | |endpoint = shared | ||
|type = function | |type = function | ||
Line 13: | Line 14: | ||
|return1 = void | |return1 = void | ||
|returnFail1 = void | |returnFail1 = void | ||
|notes = When used in a server script, use null to send the event to all clients or specify a client object. See [[Shared/Functions/Network/addNetworkHandler|addNetworkHandler]] for information regarding custom event handler functions. | |notes = When used in a server script, use null to send the event to all clients or specify a client object. See [[Shared/Functions/Network/addNetworkHandler|addNetworkHandler]] for information regarding custom event handler functions. | ||
|exampleJSSS = function makeCivilianWalkToPos(civilian, x, y, z) { | |exampleJSSS = function makeCivilianWalkToPos(civilian, x, y, z) { | ||
triggerNetworkEvent("walkToPos", null, civilian, x, y); | triggerNetworkEvent("walkToPos", null, civilian, x, y); | ||
} | } | ||
}} | }} |