isRemoteExecuted: Difference between revisions

From Bohemia Interactive Community
(see also)
m (Some wiki formatting)
(46 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________
|arma3 |= Game
|1.66|= Game Version
|arg=  |= Multiplayer Arguments
|eff=  |= Multiplayer Effects
|exec= |= Exec
____________________________________________________________________________________________
| Returns [[true]] if the code context is being remote executed by [[remoteExec]] or [[remoteExecCall]]. In SP always returns [[false]]. See also [[isRemoteExecutedJIP]] |= Description
____________________________________________________________________________________________
| '''isRemoteExecuted''' |= Syntax


| [[Boolean]] |= Return Value
|game1= arma3
|x1= <code>_remoteExecuted = [[isRemoteExecuted]];</code> |= Example 1
|version1= 1.66


| [[isRemoteExecutedJIP]], [[remoteExec]], [[remoteExecCall]], [[canSuspend]], [[remoteExecutedOwner]], [[isUIContext]] |= See Also
|gr1= Multiplayer
 
|descr= Returns [[true]] if the code context is being remote executed by [[remoteExec]] or [[remoteExecCall]]. In SP always returns [[false]]. See also [[isRemoteExecutedJIP]]
 
|s1= [[isRemoteExecuted]]
 
|r1= [[Boolean]]
 
|x1= <sqf>private _remoteExecuted = isRemoteExecuted;</sqf>
 
|seealso= [[isRemoteExecutedJIP]] [[remoteExec]] [[remoteExecCall]] [[canSuspend]] [[remoteExecutedOwner]] [[isUIContext]] [[isGamePaused]] [[isGameFocused]]
}}
}}


<dl class='command_description'>
{{GameCategory|arma3|Remote Execution}}
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
{{Note
<!-- Appropriate categories go here -->
|user= Demellion
 
|timestamp= 20170911111600
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|text=When [[remoteExec]]/[[remoteExecCall]] is called from a headless client to client, this will always return as false.<br>  
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
This effect also occurs with [[remoteExecutedOwner]] - it will return always return 0 from a headless client.
}}

Revision as of 18:05, 15 August 2022

Hover & click on the images for description

Description

Description:
Returns true if the code context is being remote executed by remoteExec or remoteExecCall. In SP always returns false. See also isRemoteExecutedJIP
Groups:
Multiplayer

Syntax

Syntax:
isRemoteExecuted
Return Value:
Boolean

Examples

Example 1:
private _remoteExecuted = isRemoteExecuted;

Additional Information

See also:
isRemoteExecutedJIP remoteExec remoteExecCall canSuspend remoteExecutedOwner isUIContext isGamePaused isGameFocused

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
Demellion - c
Posted on Sep 11, 2017 - 11:16 (UTC)
When remoteExec/remoteExecCall is called from a headless client to client, this will always return as false.
This effect also occurs with remoteExecutedOwner - it will return always return 0 from a headless client.