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
How to activate an area during gameplay?
j00le Offline
Junior Member

Posts: 13
Threads: 3
Joined: Dec 2013
Reputation: 0
#1
How to activate an area during gameplay?

Hello, I'm kinda new with custom story making so I need some help.

So, I need to activate a script area by picking up an item or walking to another script area.
Help me out, please Big Grin
(This post was last modified: 12-31-2013, 03:01 PM by j00le.)
12-31-2013, 03:00 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: How to activate an area during gameplay?

You can use the function SetEntityActive to set the area active like you would do with an item. Simply uncheck the Active box in the level editor. Do you need me to give you the whole script ^^ ?

12-31-2013, 03:04 PM
Find
j00le Offline
Junior Member

Posts: 13
Threads: 3
Joined: Dec 2013
Reputation: 0
#3
RE: How to activate an area during gameplay?

I tried it and it worked, thank you very much Big Grin
Great example, how simple things matter in this! Smile

Btw, you happen to know a tutorial video about making animations?
12-31-2013, 03:10 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#4
RE: How to activate an area during gameplay?

Nope. I will be learning 3D sculpting and animation creation as soon as I have finished my first mod, but right now I don't know any turotial.

12-31-2013, 03:39 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#5
RE: How to activate an area during gameplay?

(12-31-2013, 03:10 PM)j00le Wrote: I tried it and it worked, thank you very much Big Grin
Great example, how simple things matter in this! Smile

Btw, you happen to know a tutorial video about making animations?

Animations are tough to make. Learning Animation in a week is kinda impossible.

"Veni, vidi, vici."
"I came, I saw, I conquered."
12-31-2013, 05:13 PM
Find
j00le Offline
Junior Member

Posts: 13
Threads: 3
Joined: Dec 2013
Reputation: 0
#6
RE: How to activate an area during gameplay?

(12-31-2013, 05:13 PM)JustAnotherPlayer Wrote: Animations are tough to make. Learning Animation in a week is kinda impossible.

I may be using wrong term, what I'm meaning is for example flashback where the player walks without you being able to control it.
12-31-2013, 05:25 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: How to activate an area during gameplay?

You can make the player incabable of controls with the function
SetPlayerActive(false);

Then with different script lines you can make the scene you want.

Use this:
http://wiki.frictionalgames.com/hpl2/amn..._functions

and Ctrl+F to search

MovePlayerForward has to be repeadetly called by a timer, but is a function that makes the player walk.

Trying is the first step to success.
12-31-2013, 07:22 PM
Find
j00le Offline
Junior Member

Posts: 13
Threads: 3
Joined: Dec 2013
Reputation: 0
#8
RE: How to activate an area during gameplay?

There are really helpful people here, thank you so much! Smile
01-01-2014, 08:28 AM
Find




Users browsing this thread: 1 Guest(s)