(04-05-2012, 11:25 AM)Tekkie Wrote: (04-05-2012, 11:23 AM)zombiehacker595 Wrote: so i have been working on this map for a couple of hours and for some reason one sledge hammer crashes the whole game the aim was to get the player to go into a room door closes behind them and the locked message was that the sledge hammer could break it down i did the scripting but for some reason the sledge crashes the whole game i went back and deleted it and the map loaded fine any one have any clues as to why this is happining???? if not i guess i can just use a shovel
I would suggest pasting the scripting from your .hps file here, so that the coders can point out which bit of coding you've written is causing the crash. I don't think it's the actual item, more, how you've added it to the game and how you've told the game you want the player to use it =]
AddEntityCollideCallback("cellar_wood01_2", "sledge_1", "BreakDoor", true, 1);
}
void BreakDoor(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cellar_wood01_2", false);
}
and i got no error message saying the script was wrong i got that huge game crash message saying something is wrooooong so yea i dont know what is going on
nvm script is fucked a shovel was already on the map i just replaced the sledges name with the shovels on the script and got major crash i think im gonna have to ditch it