lizardrock17
Junior Member
Posts: 20
Threads: 3
Joined: Jun 2013
Reputation:
0
|
RE: Weeping Angel enemies
From what you guys told me I have compiled this: (I havent tried it yet because if i encounter any problems i dont want to spend hours on the internet trying to find out my script is wrong)
void OnStart()
{
SetEntityPlayerLookAtCallback("angel_statue_1", "WeepingAngel_1", false);
}
//"angel_statue_1" is the name of the statue in the level editor
//"WeepingAngel" is the name of your script that will be called when the player is looking/not looking
//true means the script won't be called again after the player looks at
//the angel once. I'm using this one because you're probably going to
//have to use multiple statues with angel_statue_1 being your first statue
void WeepingAngel_1(string &in asEntity, int alState)
{
if(alState == 1) //1 means looking
{
//Your angles don't do anything when you're looking at them, so leave this blank
}
else if(alState == -1)//-1 means not looking
{
void ShowEnemyPlayerPosition(string& "angel_statue_1);\\Makes angel follows player
}
}
Would this work?
(This post was last modified: 06-19-2013, 05:59 PM by lizardrock17.)
|
|
06-19-2013, 05:57 PM |
|