exec: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#E|COMREF]]
<h2 style="color:#000066">'''abs ''x'''''</h2>
<h2 style="color:#000066">'''abs ''x'''''</h2>


argument exec script
 
'''Operand types:'''
'''Operand types:'''
'''
argument:''' [[Any]] Value


argument: [[Any]] Value
'''script:''' [[String]]
 
script: [[String]]


'''Type of returned value:'''
'''Type of returned value:'''
 
[[
Nothing
Nothing]]


'''Description:'''
'''Description:'''


Execute script.
Execute script.
Argument is passed to script as local variable _this.
 
Argument is passed to script as local variable '''_this'''.
 
Script is first searched for in mission folder, then in campaign scripts subfolder, lastly in global scripts folder.
Script is first searched for in mission folder, then in campaign scripts subfolder, lastly in global scripts folder.


'''Example:'''
'''Example:'''


[player, jeepOne] '''exec''' "getIn.sqs"
[[[player]], jeepOne] '''exec''' "getIn.sqs"

Revision as of 03:20, 16 April 2006

back to COMREF

abs x


Operand types: argument: Any Value

script: String

Type of returned value: [[ Nothing]]

Description:

Execute script.

Argument is passed to script as local variable _this.

Script is first searched for in mission folder, then in campaign scripts subfolder, lastly in global scripts folder.


Example:

[[[player]], jeepOne] exec "getIn.sqs"