Game Development Community

Script issues with dts bounding box?

by Brandon Beauchene · in Technical Issues · 02/22/2005 (9:34 pm) · 1 replies

Ok ill make this quick. When adding a model to the world i get this error in the log file.

Error: shape control/data/models/weapons/boltclip.dts-collision detail 0 (Collision-3) bounds box invalid!


now i dont know exactly what that means model loads in the world and does everything except work with collisions (ie item pickups).

any suggestions on where to look would be appreciated

#1
02/22/2005 (11:58 pm)
Well i got it to work with collisions but now im getting these errors.....

control/server/misc/item.cs (40): Unknown command startFade.
Object (1251) Item -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject

and

control/server/misc/item.cs (41): Unknown command hide.
Object (1251) Item -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject

now the only place that hid() and startFade() are used is in here....
------------------------------------------------------
$Item::RespawnTime = 20 * 1000;
$Item::PopTime = 10 * 1000;

function Item::respawn(%this)
{
%this.startFade(0, 0, true);
%this.hide(true);
%this.schedule($Item::RespawnTime, "hide", false);
%this.schedule($Item::RespawnTime + 100, "startFade", 1000, 0, false);
}

function Item::schedulePop(%this)
{
%this.schedule($Item::PopTime - 1000, "startFade", 1000, 0, true);
%this.schedule($Item::PopTime, "delete");
}

and dont see anything wrong with the code, just that the hide and startFade commands arent reccognized by the engine.