apescott
Active member
Started a new SOR1 project but having issues with the conveyor belt... I used the same method as SORX mod did but player/enemies get stuck on the edges. It only works when you jump onto it or enemy goes into FALL animation on the belt and bbox resets. What could be causing this? Thank you for the help 
Here is a video of the issue:
Here are the scripts:
grabscript.c (contains dasher) :
Here is a video of the issue:
Here are the scripts:
Code:
name Conveyor
type none
subtype touch
shadow 0
setlayer -10
offscreenkill 6000
animationscript data/scripts/grabscript.c
load ConveyorS
anim idle
loop 1
delay 14
offset 1 64
@cmd spawn01 "ConveyorS" 0 0 0
frame data/bgs/round_6/conveyor00.png
frame data/bgs/round_6/conveyor01.png
frame data/bgs/round_6/conveyor02.png
Code:
name ConveyorS
type none
shadow 0
setlayer -1
candamage player enemy
antigravity 100
animationscript data/scripts/grabscript.c
anim idle
loop 1
delay 42
offset 1 64
@cmd dasher 0.2 0 0
platform 0 126 186 312 64 0.001
frame data/chars/misc/empty.gif
@cmd suicide
frame data/chars/misc/empty.gif
grabscript.c (contains dasher) :
Code:
void dasher(float Vx, float Vy, float Vz)
{//Dash with desired speed!
void self = getlocalvar("self");
int dir = getentityproperty(self,"direction");
if(dir == 0){Vx = -Vx ;}
changeentityproperty(self, "velocity", Vx, Vz, Vy);
}