Difference between revisions of "Script-eval"

From FreeSpace Wiki
Jump to: navigation, search
(New page: script-eval script-eval Evaluates scriptTakes at least 1 argument... 1: Script to evaluate ===Comments=== This is used to access a Lua script in-...)
 
(Just remove the 3.6.9 note altogether and note what the replacement is after deprecation. I prey that this edit is more resultative than the last.)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
     1: Script to evaluate
 
     1: Script to evaluate
 
===Comments===
 
===Comments===
This is used to access a [[FS2 Open Lua Scripting|Lua]] script in-mission. Note that the current stable branch of the SCP (3.6.9) does not have the newer scripting additions, though this may be subject to change.
+
* This is used to access a [[FS2 Open Lua Scripting|Lua]] script in-mission.
 +
* Deprecated in the June 5, 2021 nightly build in favour of [[script-eval-block]], whioh has more intuitive behaviour.
 +
** Specifically, script-eval will try to evaluate each argument passed to it separately, whereas script-eval-block will concatenate all its arguments before evaluating them as a single expression.
 +
 
 
[[Category:SCP SEXPs]]
 
[[Category:SCP SEXPs]]

Latest revision as of 22:58, 15 June 2021

script-eval
    script-eval
    Evaluates scriptTakes at least 1 argument...
    1: Script to evaluate

Comments

  • This is used to access a Lua script in-mission.
  • Deprecated in the June 5, 2021 nightly build in favour of script-eval-block, whioh has more intuitive behaviour.
    • Specifically, script-eval will try to evaluate each argument passed to it separately, whereas script-eval-block will concatenate all its arguments before evaluating them as a single expression.