What it does
ObjectEffect takes objectID (an integer) and effect (a string), and returns nothing. That is the first of 2 forms. objectID is the id of a 3D object, the one LoadObject returned: it is how the call knows what to act on.
Syntax
1
ObjectEffect(objectID integer, effect string)2
ObjectEffect(objectID integer, effect string, amount float, speed float, scale float)Parameters
| Name | Type | In forms |
|---|---|---|
| objectID | integer | all |
| effect | string | all |
| amount | float | 2 |
| speed | float | 2 |
| scale | float | 2 |
Every form returns
nothing
Example · generated
Form 1, the short one
object = LoadObject("assets/media.obj")ObjectEffect(object, "value")DO Sync()LOOPForm 2, with every argument
object = LoadObject("assets/media.obj")ObjectEffect(object, "value", 0.5, 1.0, 1.0)DO Sync()LOOPLoadObject is there to give the call something to act on; ObjectEffect is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.