Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List of Amnesia variables
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: List of Amnesia variables

(01-04-2012, 03:46 AM)Sazureth Wrote: To say it briefly, I need to know when the monster can see the player so I can use it in the script, how can I do that?
(Something like using GetInt, but I need to know what's the name of the variable (in this case for the monster seeing the player), and I'm asking if there is a list of those variables the game engine uses, like there is a list of all the functions)
I don't know if it's possible... BUT you can try. You have to create an "integer" so to speak... for example, at the top of the script, put something like "SetLocalVarInt("Monsternotice", 0);"

Then find a way to activate a script to check if the player has an enemy notice you. (perhaps a better scripter than I can figure out if that is possible) and have this in the function:

"AddLocalVarInt("Monsternotice", 1);"

And later put a script to check if the interger has been added to. Perhaps have it on a looping timer. Something like:

int GetLocalVarInt(SYNTAX TO FOLLOW FUNCTION)
{
if(GetLocalVarInt("Monsternotice") == 1)
{
//Function to call if he has noticed you
}
if(GetLocalVarInt("Monsternotice") == 0)
{
//Leave empty if the monster has not noticed.. Won't call any functions unless functions are put here.
}
}
(This post was last modified: 01-04-2012, 04:01 AM by Statyk.)
01-04-2012, 04:00 AM
Find


Messages In This Thread
List of Amnesia variables - by Sazureth - 01-04-2012, 03:30 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 03:32 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 03:46 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:00 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 04:12 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:16 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 04:29 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:34 AM
RE: List of Amnesia variables - by Your Computer - 01-04-2012, 07:14 PM
RE: List of Amnesia variables - by Krymtel - 01-06-2012, 03:23 PM
RE: List of Amnesia variables - by Apjjm - 01-06-2012, 05:57 PM
RE: List of Amnesia variables - by MrBigzy - 01-04-2012, 07:33 PM
RE: List of Amnesia variables - by Sazureth - 01-06-2012, 07:17 PM
RE: List of Amnesia variables - by MrBigzy - 01-06-2012, 07:55 PM



Users browsing this thread: 1 Guest(s)