03-14-2012, 05:21 AM
Hello, this time I'm having help with the "SetEntityActive" function, I have made it so if you pick up "potion_oil_1", it is supposed to set 5 "armour_nice_complete"s active, although, it isnt working.
void OnStart()
{
SetEntityPlayerInteractCallback("potion_oil_1", "superscare", true);
}
void superscare(string &in asItem, string &in asEntity)
{
SetEntityActive("armour_nice_complete_1", true);
SetEntityActive("armour_nice_complete_2", true);
SetEntityActive("armour_nice_complete_3", true);
SetEntityActive("armour_nice_complete_4", true);
SetEntityActive("armour_nice_complete_5", true);
}
Any ideas?
void OnStart()
{
SetEntityPlayerInteractCallback("potion_oil_1", "superscare", true);
}
void superscare(string &in asItem, string &in asEntity)
{
SetEntityActive("armour_nice_complete_1", true);
SetEntityActive("armour_nice_complete_2", true);
SetEntityActive("armour_nice_complete_3", true);
SetEntityActive("armour_nice_complete_4", true);
SetEntityActive("armour_nice_complete_5", true);
}
Any ideas?