remoteExec
Jump to navigation
Jump to search
Description
- Description:
- Asks server to execute a command remotely by spawning it.
- Groups:
- Uncategorised
Syntax
- Syntax:
- remoteExec unit
- Parameters:
- funcName: String
- [params,targets,id]: Array
- params: Array - a list of parameters passed to function funcName
- targets: Number, String, Side, Object, Group or an Array of any of them
- - Number: function will be executed only on client with the given ID. When negative, it will be executed everywhere except on client with the ID. ID stands for ID returned by owner
- - String: the function will be executed only where unit defined by the variable is local
- - Object: the function will be executed only where unit is local
- - Group: the function will be executed only on players who are members of the group
- - Side: the function will be executed on all players of the given side
- Return Value:
- Nothing
Examples
- Example 1:
"hint" remoteExec ["hello", 0]; // runs hint "hello" on each connected client
- Example 2:
"hint" remoteExec ["hello", 3]; // runs hint "hello" on first connected client
- Example 3:
"hint" remoteExec ["hello", -2]; // runs hint "hello" everywhere but server
Additional Information
- See also:
- remoteExecCall BIS_fnc_MP
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note