01-09-2012, 02:47 PM
01-09-2012, 02:52 PM
...........................
void OnStart()
{
AddUseItemCallback("", "Name_of_item", "ScriptArea_break", "break", true);
}
void break(string &in asItem, string &in asEntity)
{
SetEntityActive("caved_in_wall", false);
SetEntityActive("tunnel", true); //use what ever you want here
}
Put a ScriptArea in the place you want to interact with and name it: ScriptArea_break
You might have to use Particles so it doesn't look that bad:
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
void OnStart()
{
AddUseItemCallback("", "Name_of_item", "ScriptArea_break", "break", true);
}
void break(string &in asItem, string &in asEntity)
{
SetEntityActive("caved_in_wall", false);
SetEntityActive("tunnel", true); //use what ever you want here
}
Put a ScriptArea in the place you want to interact with and name it: ScriptArea_break
You might have to use Particles so it doesn't look that bad:
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);