12-24-2013, 10:02 PM
so heyllo,
so im messing around with script function stuff and im trying to find a way to add something to this script.
this is what i have so far:
void OnStart()
{
SetEntityCallbackFunc("key_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
ShowEnemyPlayerPosition("servant_brute_1");
}
this spawns an enemy hallucination once you pick up the key and everything works so far. i took out all the other parts of the scrip because this is the only important thing but ive tried it and it works fine.
i was wondering if anyone could tell me how to have the player look at the brute when he picks up the key.
thank yall!
so im messing around with script function stuff and im trying to find a way to add something to this script.
this is what i have so far:
void OnStart()
{
SetEntityCallbackFunc("key_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
ShowEnemyPlayerPosition("servant_brute_1");
}
this spawns an enemy hallucination once you pick up the key and everything works so far. i took out all the other parts of the scrip because this is the only important thing but ive tried it and it works fine.
i was wondering if anyone could tell me how to have the player look at the brute when he picks up the key.
thank yall!