3DRadSpace  v1.0.0a
Scripting documentation
_3DRadSpaceDll.OpcodeEvent Namespace Reference

Classes

struct  OpCodeCall
 Calls an opcode; More...
 

Enumerations

enum  Opcode {
  Opcode.NOP = 0, Opcode.Start, Opcode.Stop, Opcode.Toggle,
  Opcode.Show, Opcode.Hide, Opcode.SetPos, Opcode.AddPos,
  Opcode.SetRot, Opcode.AddRot, Opcode.RunOneFrame
}
 The commands that the script can execute. More...
 

Enumeration Type Documentation

◆ Opcode

The commands that the script can execute.

Name: OPeration CODE

Enumerator
NOP 

No operation. Does nothing.

Can be used to store object IDs or other data.

Start 

Starts an object.

Argument: int -object identifier.

Stop 

Stops an object.

Argument: int -object identifier.

Toggle 

Toggles the start/stop state of an object.

Argument: int -object identifier.

Show 

Shows an object.

Arguments: int -object identifier.

Hide 

Hides an object.

Arguments: int -object identifier.

SetPos 

Sets an object's position.

Arguments: int - object identifier

Vector3 - position.

AddPos 

Adds a vector to the object's position.

Arguments:

int - Object identifier.

Vector3 - position

SetRot 

Sets the object rotation.

Arguments:

int - Object identifier.

Vector3 - Rotation in Euler angles.

AddRot 

Adds a vector to the object's rotation.

Arguments:

int - Object identifier.

Vector3 - Rotation in Euler Angles.

RunOneFrame 

Starts an object, update it, then stop it.

Arguments

int - Object ID