Difference between revisions of "OBSE Wish List"

1,057 bytes added ,  18:17, 11 July 2010
no edit summary
imported>Angel
(→‎Actor Functions: MatchRace, MatchFacedata)
imported>Moses
Line 101: Line 101:
==Other Functions==
==Other Functions==
Functions which don't fit into other categories:
Functions which don't fit into other categories:
*'''CallFunction''' Script:Ref RunBlockType:Short SyncVariables:Boolean SaveToCalling:Boolean ResetCalledScript:Boolean - Provide the editor ID of a script and it pauses the calling script and runs the called script like normal.
:*RunBlockType determines what block will be run when the script is executed. -1 = all blocks are run regardless. 0 = blocks are run normally. Anything above is a specific blocktype. 0 is assumed
:*If SyncVariables is set to true the calling script will set variables with the same name and type within the called script to match those within the calling script. 1 is assumed
:*If SaveToCalling is true when the called script finishes executing it will set variables with the same name and type within the calling script to match those in the called script. 1 is assumed
:*If ResetCalledScript is set to true then when the called script finishes executing it's variables will be reset to what they were before they were called. 1 is assumed
Like in real programming this would eliminate a very large amount of redundant code.
*'''GetCollisionTrace''' - Generalized version of [[GetLOS]] to return where collision occurs, rather than a boolean expression of success or failure. Traces a line from a start point to a destination point and returns a two-dimensional array. Each row corresponds to a point where collision with a new object is detected from the start to destination, with four columns: the reference ID of the colliding object, and X,Y,Z coordinates of the collision. If collision is never detected, returns an empty array. Actors are ignored for the collision check if optional parameter ignoreActors is true, defaults to false. If necessary for efficiency, implementation can include a distance between collision checks specified by optional parameter distanceSkip, defaulting to 16 (or some other efficient value).
*'''GetCollisionTrace''' - Generalized version of [[GetLOS]] to return where collision occurs, rather than a boolean expression of success or failure. Traces a line from a start point to a destination point and returns a two-dimensional array. Each row corresponds to a point where collision with a new object is detected from the start to destination, with four columns: the reference ID of the colliding object, and X,Y,Z coordinates of the collision. If collision is never detected, returns an empty array. Actors are ignored for the collision check if optional parameter ignoreActors is true, defaults to false. If necessary for efficiency, implementation can include a distance between collision checks specified by optional parameter distanceSkip, defaulting to 16 (or some other efficient value).
:Usage:
:Usage:
Anonymous user