home *** CD-ROM | disk | FTP | other *** search
- class GameCargo extends GameNode
- {
- var world;
- function GameCargo()
- {
- super();
- }
- function onAddToWorld()
- {
- if(!_root.PostVR_Burst)
- {
- this.world.removeObject(this);
- }
- this.x = this.sector.x;
- this.y = this.sector.y;
- this.z = this.sector.z;
- }
- function onCross(sled)
- {
- this.world.addObject(new FlyingCargo(sled),this.sector.previous.x,this.sector.previous.y + this.sector.previous.radius - 300,this.sector.previous.z,this.sector.previous.index);
- }
- }
-