SET OBJECT EFFECT This command will apply a previously loaded FX effect onto the specified object.
Syntax
    SET OBJECT EFFECT Object Number, Effect Number
Parameters
    Object Number
Integer The object number
    Effect Number
Integer The effect number
Returns
This command does not return a value.
Description
Using this command instead of SET EFFECT ON allows many objects to share a single FX system and increase the performance of your application.
Example Code
    sync on : sync rate 60

    load image "spec.bmp",1

    load object "sphere.x",4

    position object 4,0,0,0

    load effect "bubble.fx",1,1

    if effect exist(1)=1

    set object effect 4,1

    set limb effect 4,0,1

    endif

    x#=640-480 : set camera view x#/2,0,640-(x#/2),480

    set camera aspect 1.0

    rem Main loop

    do

    inc side#,4

    set point light 0,cos(side#)*200,125,-300

    center text 320,20,"CRAZY COMBINATION OF NEW U5 COMMANDS"

    sync

    loop

    ghost particles off 1

    delete effect 1

    end
See also
BASIC3D Commands Menu Index