06-25-2012, 05:45 PM
I'm having a slight problem. My script code in my .hps file is working perfect and the map works but when I add the following:
on void OnStart() i add AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);
and then I add
void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}
and for some reason I get unexpected end of line, why is this?
on void OnStart() i add AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);
and then I add
void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}
and for some reason I get unexpected end of line, why is this?