09-26-2020, 11:19 AM
Was trying to make a breaking script
but it says the open token is unexpected.
The healbox_1 is a common wood_box02_breakable.ent.
Are there any more proper ways of doing this if it's too wrong?
Code:
void OnStart()
{
void AddUseItemCallback("", "crowbar", "healbox_1", "BreakBox", true);
}
void BreakBox(string& asName, string& asEntity);
{
SetPropHealth("healbox_1", "0");
}
but it says the open token is unexpected.
Code:
FATAL ERROR: Could not load script file
'custom_stories/labstory/maps/00_scripttest.hps'!
main (12,1): ERR : Unexpected token ‘{'
The healbox_1 is a common wood_box02_breakable.ent.
Are there any more proper ways of doing this if it's too wrong?