KingAlfonso
2006.10.26, 07:25 PM
hey uh i was trying to put a object i made into a map and i made a script for it.
but when i enter the game it says syntax error.
what am i doing wrong?
heres the script
but when i enter the game it says syntax error.
what am i doing wrong?
heres the script
Code:
// ***********************************************************
//
// OBJECT: ventilationthingy
//
// ***********************************************************
{
obj.model.on=true;
obj.model.name="ventilationthingy";
obj.model.shadow.on=false;
obj.setting.suspend=false;
obj.size.x=850;
obj.size.z=850;
obj.size.y=1900;
obj.model.animation.start("fanmovement") ;
}
/ /
/ / events
/ /
function event(obj,mainEvent,subEvent,id,tick)
{
switch (mainEvent) {
case DIM3_EVENT_CONSTRUCT:
ventilationthingy(obj);
return;
case DIM3_EVENT_SPAWN:
obj.model.animation.start("fanmovement");
return;
}
}
.