ObjectEffect

Family: 3D · 2 forms

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

NameTypeIn forms
objectIDintegerall
effectstringall
amountfloat2
speedfloat2
scalefloat2

Every form returns

nothing

Example · generated

Form 1, the short one

object = LoadObject("assets/media.obj")ObjectEffect(object, "value")DO  Sync()LOOP

Form 2, with every argument

object = LoadObject("assets/media.obj")ObjectEffect(object, "value", 0.5, 1.0, 1.0)DO  Sync()LOOP

LoadObject 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.

286 commands in 3D