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
Script Question
TheGilgameshZocker Offline
Junior Member

Posts: 13
Threads: 11
Joined: Mar 2012
Reputation: 0
#1
Script Question

Hi guys!
Can you tell me, what I have to do in this case: I want that the player walks through the rooms of my map, and at the end, he finds a key and I want a monster to spawn at a point, where the player already has been, but the monster should only spawn, when the player already has picked up the key. (for example Amnesia original: Storage Room, when you have picked up those rods and you want to go out, there will spawn a lot of monsters.)I can't use an AddEntityCollideCallback, can't I? Am I able to make something like: SetAreaActive, or so?
Please help me! Big Grin
04-22-2012, 04:45 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: Script Question

https://www.youtube.com/watch?v=ZYbTxyjh...9BC99530C8

Noob scripting tutorial: From Noob to Pro

04-22-2012, 04:52 PM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#3
RE: Script Question

*slap*

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

04-22-2012, 05:07 PM
Website Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#4
RE: Script Question

(04-22-2012, 05:07 PM)JetlinerX Wrote: *slap*
Thank you, but I'm actually modding currently, and these pauses are fairly brief.

Noob scripting tutorial: From Noob to Pro

04-22-2012, 05:36 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#5
RE: Script Question

I would suggest looking through the main Amnesia script files to try to answer questions like this, as you can learn a lot from them. For example, you know that this kind of thing happens in the storage room, so simply look through the script file associated for the storage room and see how they did it.

Reverse-engineering someone else's script is probably (at least in my opinion) the fastest and easiest way to learn.

04-22-2012, 06:15 PM
Find




Users browsing this thread: 1 Guest(s)