|
TorqueScript Reference
|
Inherits SimObject.
| Integer addDataKey | ( | time | , |
| value | |||
| ) |
Add Data-Key to Graph.
| time | The key time. |
| value | The value at specified time |
| Boolean clearDataKeys | ( | ) |
Clears all data-key(s) from the field.
| void deselectField | ( | ) |
Deselect any selected field. If no field is selected then nothing happens.
| Float getAlignedAngleOffset | ( | ) |
Gets the aligned angle offset.
| Float getAlphaTest | ( | ) |
Gets the render alpha test threshold.
| String getAnimation | ( | ) |
Gets the asset Id of the animation asset assigned to the emitter.
| Boolean getAttachPositionToEmitter | ( | ) |
Get Attach-Position-To-Emitter Flag.
| Boolean getAttachRotationToEmitter | ( | ) |
Get Attach-Rotation-To-Emitter Flag.
| Boolean getBlendMode | ( | ) |
Gets whether to use render blending or not.
| String getDataKey | ( | keyIndex | ) |
Gets the data-key at the specified index from the field.
| keyIndex | The index of the data-key to be retrieved. |
| Integer getDataKeyCount | ( | ) |
Gets the data-key count.
| String getDstBlendFactor | ( | ) |
Gets the destination render blend factor.
| Float getEmitterAngle | ( | ) |
Gets the emitter angle.
| String getEmitterName | ( | ) |
Gets the name of the emitter.
| String getEmitterOffset | ( | ) |
Gets the emitter offset position.
| String getEmitterSize | ( | ) |
Gets the emitter size.
| String getEmitterType | ( | ) |
Gets the type of the emitter.
| Float getFieldValue | ( | time | ) |
Get the fields' value at the specified time.
| time | The time to sample the field value at. |
| Float getFixedAngleOffset | ( | ) |
Get Fixed-Orientation Angle-Offset.
| Boolean getFixedAspect | ( | ) |
Gets whether the emitter uses a fixed-aspect for particles or not.
| Float getFixedForceAngle | ( | ) |
Gets the emitter fixed-force angle for particles.
| String getImage | ( | ) |
Gets the asset Id of the image asset assigned to the emitter.
| Integer getImageFrame | ( | ) |
Gets the frame index of the image asset assigned to the emitter.
| Boolean getIntenseParticles | ( | ) |
Get Intense-Particles Flag.
| Boolean getKeepAligned | ( | ) |
Gets whether to keep emitted particles aligned or not.
| Boolean getLinkEmissionRotation | ( | ) |
Get Link-Emission-Rotation Flag.
| Float getMaxTime | ( | ) |
Get the maximum time for the field.
| Float getMaxValue | ( | ) |
Get the maximum value for the field.
| Float getMinTime | ( | ) |
Get the minimum time for the field.
| Float getMinValue | ( | ) |
Get the minimum value for the field.
| String getNamedImageFrame | ( | ) |
Gets the asset Id of the image asset assigned to the emitter.
| Boolean getOldestInFront | ( | ) |
Gets whether to render particles as oldest on front or not.
| String getOrientationType | ( | ) |
Gets the orientation-type of the emitter.
| String getOwner | ( | ) |
Particle emitter accessors.
Gets the asset owner of the emitter.
| String getPivotPoint | ( | ) |
Get Pivot-Point.
| Float getRandomAngleOffset | ( | ) |
Get Random-Orientation Angle-Offset.
| Float getRandomArc | ( | ) |
Get Random-Orientation Arc.
| Boolean getRandomImageFrame | ( | ) |
Gets whether a random frame from the specified ImageAsset is being used or not.
| Float getRepeatTime | ( | ) |
Gets the time period that the fields' value repeat (cycle) at.
| Integer getSelectableFieldCount | ( | ) |
Particle emitter fields.
Gets the number of available selectable fields.
| String getSelectableFieldName | ( | fieldIndex | ) |
Gets the selectable field at the specified index.
| Boolean getSelectedField | ( | ) |
Gets the selected field name or nothing if no field is selected.
| Boolean getSingleParticle | ( | ) |
Get Single-Particle Flag.
| String getSrcBlendFactor | ( | ) |
Gets the source render blend factor.
| Float getValueScale | ( | ) |
Gets the scaling of field values' retrieved from the field.
| Boolean isUsingNamedImageFrame | ( | ) |
Gets whether the emitter is using a numerical or named image frame.
| Boolean removeDataKey | ( | keyIndex | ) |
Remove the data-key from the field.
| keyIndex | The index of the data-key you want to remove. |
| Boolean selectField | ( | fieldName | ) |
Select the specified field by its name.
| fieldName | The field name to use for the selection. Use an empty name to deselect to stop accidental changes. |
| void setAlignedAngleOffset | ( | alignAngleOffset | ) |
Sets the aligned angle offset.
| alignAngleOffset | The aligned angle offset. |
| void setAlphaTest | ( | float | alpha | ) |
Set the render alpha test threshold.
| alpha | The alpha test threshold in the range of 0.0 to 1.0. Less than zero to disable alpha testing. |
| Boolean setAnimation | ( | animationAssetId | ) |
Sets the emitter to use the specified animation asset Id.
| animationAssetId | The animation asset Id to use. |
| void setAttachPositionToEmitter | ( | attachPositionToEmitter | ) |
Set Attach-Position-To-Emitter Flag.
| void setAttachRotationToEmitter | ( | attachRotationToEmitter | ) |
Set Attach-Rotation-To-Emitter Flag.
| void setBlendMode | ( | blendMode | ) |
Sets whether to use render blending or not.
| blendMode | Whether to use render blending or not. |
| Boolean setDataKeyValue | ( | keyIndex | , |
| value | |||
| ) |
Set data-key value for the field.
| keyIndex | The index of the key to be modified. |
| value | The value to change the key to. |
| void setDstBlendFactor | ( | dstBlend | ) |
Sets the destination render blend factor.
| dstBlend | The destination render blend factor. |
| void setEmitterAngle | ( | angle | ) |
Sets the emitter angle.
| angle | The angle of the emitter. |
| void setEmitterName | ( | emitterName | ) |
Sets the name of the emitter.
| emitterName | The name to set the emitter to. |
| void setEmitterOffset | ( | float X/float | Y | ) |
Offsets the position of the emitter relative to the effect or player position.
| void setEmitterSize | ( | width/ | height | ) |
Sets the emitter size.
| width | The width of the emitter. |
| height | The height of the emitter. |
| void setEmitterType | ( | emitterType | ) |
Sets the type of the emitter.
| emitterType | The type to set the emitter. Either 'POINT', 'LINE', 'BOX' or 'DISK', 'ELLIPSE' or 'TORUS'. An emitter-type of 'POINT' creates the particles at the position of the particle asset. An emitter-type of 'LINE' creates the particles along a line defined by the particle width. An emitter-type of 'BOX' creates the particles within the dimensions defined by the particle size. An emitter-type of 'DISK' creates the particles within a disk with radii defined by the particle size. An emitter-type of 'ELLIPSE' creates the particles on an ellipse with the radii defined by the particle size. An emitter-type of 'TORUS' creates the particles within a torus with a maximum and minimum radii defined by the particle width and height respectively. |
| void setFixedAngleOffset | ( | randomAngle | ) |
Set Fixed-Orientation Angle-Offset.
| void setFixedAspect | ( | fixedAspect | ) |
Sets the emitter to used a fixed-aspect for particles.
| fixedAspect | Whether to use a fixed-aspect or not. |
| void setFixedForceAngle | ( | fixedForceAngle | ) |
Sets the emitter fixed-force angle for particles.
| fixedForceAngle | The fixed-force angle for particles. |
| Boolean setImage | ( | imageAssetId | ) |
Sets the emitter to use the specified image asset Id and optional frame.
| imageAssetId | The image asset Id to use. |
| frame | The frame of the image asset Id to use. Optional. |
| Boolean setImageFrame | ( | frame | ) |
Sets the emitter to use the specified numerical image frame.
| frame | The frame index of the image to use.. |
| void setIntenseParticles | ( | intenseParticles | ) |
Set Intense-Particles Flag.
| void setKeepAligned | ( | keepAligned | ) |
Sets whether to keep emitted particles aligned or not. Whether to keep emitted particles aligned or not.
| void setLinkEmissionRotation | ( | linkEmissionRotation | ) |
Set Link-Emission-Rotation Flag.
| Boolean setNamedImageFrame | ( | frame | ) |
Sets the emitter to use the specified image frame by name.
| frame | String containing the name of the frame in the image to use. |
| void setOldestInFront | ( | oldestInFront | ) |
Sets whether to render particles as oldest on front or not.
| oldestInFront | Whether to render particles as oldest on front or not. |
| void setOrientationType | ( | orientationType | ) |
Sets the orientation-type of the emitter.
| orientationType | The orientation-type to set the emitter to. Either 'FIXED', 'ALIGNED' or 'RANDOM'. An orientation-type of 'FIXED' causes the particles to be orientation at a fixed angle. An orientation-type of 'ALIGNED' causes the particles to be orientation at the current emission angle. An orientation-type of 'RANDOM' causes the particles to be orientation at a fixed angle. |
| void setPivotPoint | ( | pivotX/ | pivotY | ) |
Set the Pivot-Point.
| void setRandomAngleOffset | ( | randomAngle | ) |
Set Random-Orientation Angle-Offset.
| void setRandomArc | ( | randomArc | ) |
Set Random-Orientation Arc.
| void setRandomImageFrame | ( | randomImageFrame | ) |
Disables the Frame and NamedFrame fields and uses a random frame from the specified ImageAsset.
| randomImageFrame | Whether to use a random image frame or not. |
| Boolean setRepeatTime | ( | repeatTime | ) |
Sets the time period to repeat (cycle) the fields' values at.
| Integer setSingleDataKey | ( | value | ) |
Sets a single data-key at time-zero with the specified value. All existing keys are cleared.
| value | The value to set the key to. |
| void setSingleParticle | ( | singleParticle | ) |
Set Single-Particle Flag.
| void setSrcBlendFactor | ( | srcBlend | ) |
Sets the source blend factory.
| srcBlend | The source blend factor. |
| Boolean setValueScale | ( | valueScale | ) |
Set the scaling of field values retrieved from the field. This does not alter the actual data-key values.
| valueScale | The scale for field values retrieved from the field. |
1.8.10