04-07-2012, 03:32 AM
hi want that a plate breaks when the player enters an area: so heres the script
why wont this work
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "opendoor", true, 1);
}
void opendoor(string &in asEntity)
{
SetPropHealth("plate_9", 0.0f);
}
why wont this work