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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia editor - Help with scripting // Keys??
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Amnesia editor - Help with scripting // Keys??

(12-05-2012, 09:09 PM)Racingcreed Wrote: So like this?

http://oi47.tinypic.com/16j0nzp.jpg


Is that right?

Edit: It works, thanks a lot for the help!

So if I wanted to add more keys to the game, I would just copy and paste those commands in the same .hps file, below it and it would work correctly?
Yep. Just change the names and it's alright. It's like an alternative language, something like this in real life:

void OnAlways()
{
reaction();

}

void reaction ()
{
if (GetLocalVarInt("Dumbass") == 1) //There is a dumbass
{
SetMoveObjectState("Punch", 1.0f);
AddTimer("", 0.5, "Effects");
}

void Effects (string &in asTimer)
{
//Play sound effects, like dumbass screaming, hit, etc
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-05-2012, 10:27 PM
Find


Messages In This Thread
RE: Amnesia editor - Help with scripting // Keys?? - by The chaser - 12-05-2012, 10:27 PM



Users browsing this thread: 1 Guest(s)