Hello keybone, no matter how many ways I tried to cut i can't get this script to work (thanks anyway), I have tried to place it in scene_init and on the objectsprite script itself (boulder).
If you could get shed some light, that would be great. Current the script I have placed is on the object itself.
#include "scripts\base.inc"
var stoneonfloor = Scene.GetNode("stone");
var boulder = this.GetSpriteObject();
on "FirstFrame"
{
boulder.Pause();
}
on "LastFrame"
{
boulder.Pause();
var boulderstay = true;
var vRegion=Scene.GetNode("crashregion");
global VariableBridge;
if (VariableBridge != true ) //bridge Up
{
vRegion.Active=false ;
}
if (VariableBridge == true) //bridge down
{
vRegion.Active=true ; //
}
//global VariableBridge == true;
}
//----------------------
So basically when the animation plays and hits (lastframe) the script to make make the ground passable is initiated. If you could help that would be great.
Thanks,