StartScript: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with '{{codepointer|description= Used from EDF frames to call scripts.|usage= '''StartScript'''(''scriptnum'', ''selectvm'', ''params[0]'', ''params[1]'', ''params[2]'')|parameters= *'…') |
(No difference)
|
Revision as of 19:19, 11 November 2011
Description
Used from EDF frames to call scripts.
Usage
StartScript(scriptnum, selectvm, params[0], params[1], params[2])
Parameters
- scriptnum: Number of script to call.
- selectvm: Virtual machine to use:
- (deprecated)0 or gamescript: Small game (global) script.
- (deprecated)1 or levelscript: Small level (map) script.
- 2 or acs: Action Code Script (inherited from Hexen). Currently the only supported script VM.
- params: Up to three parameters for the called script function.
Examples
No examples given.
Notes
The semantic difference between PlayerStartScript and StartScript is that this one considers the call being made from a player weapon, the latter is called from a map object. Currently only StartScript can call ACS scripts.