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
The if and if else statements
T122002 Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 1
#4
RE: The if and if else statements

(04-09-2013, 08:32 PM)Your Computer Wrote:
(04-09-2013, 06:06 PM)T122002 Wrote: Well, for example, say I want the player to pick up a key, then when they leave the room the key was in, a monster spawns.

Technically, you don't need if and else statements for that. Just have an interact callback for the key that adds a collision callback for leaving an area that then activates a monster.

(04-09-2013, 06:06 PM)T122002 Wrote: Or maybe when you do something, like solve a puzzle (I also don't know how to do puzzle scripts), then something will happen.

Depending on the puzzle's complexity you also may not need if and else statements.

You can find some information on if-else statements here: http://wiki.frictionalgames.com/hpl2/amn...statements

Hmm..well okay. At least I won't need the if and if else stuff right now then, since you answered exactly what I wanted. But, what are the script functions to pull off the interact callback and the collision callback? I can't find them at the Engine Scripts page, unless they're named differently there.
And thanks for the link for the if else thing, its very helpful! Big Grin
(This post was last modified: 04-09-2013, 11:30 PM by T122002.)
04-09-2013, 11:29 PM
Find


Messages In This Thread
The if and if else statements - by T122002 - 04-09-2013, 06:06 PM
RE: The if and if else statements - by T122002 - 04-09-2013, 11:29 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 03:37 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 06:40 PM



Users browsing this thread: 1 Guest(s)