SET EFFECT CONSTANT INTEGER This command will set the value of an FX effect integer constant.
Syntax
    SET EFFECT CONSTANT INTEGER Effect Number, Constant String, Constant Value
Parameters
    Effect Number
Integer The effect number
    Constant String
String The constant name string
    Constant Value
Integer The value to use
Returns
This command does not return a value.
Description
An FX effect constant is one of many internal variables of the effect which control the effect in real-time based on what the FX does. Some constants are automatically provided to the FX system effect such as world and camera positions, time and other critical data. Often, FX files will contain extra constants to create a variety of results and these constants can be altered in real-time by this command. Use the PERFORM CHECKLIST FOR EFFECT VALUES to get the names of all the constants you can alter.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    cd "fx\Simple"

    load effect "Simple.fx",1,1

    load object "sphere.x",1

    if effect exist(1)=1 then set object effect 1,1

    position object 1,0,0,0

    PERFORM CHECKLIST FOR EFFECT VALUES 1

    for c=1 to checklist quantity()

    print checklist string$(c)

    next c

    SET EFFECT CONSTANT INTEGER 1,"n",1000

    while mouseclick()=0

    sync

    endwhile

    while mouseclick()=1:endwhile

    delete object 1

    delete effect 1

    end
See also
BASIC3D Commands Menu Index