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
Lever wont open my door :c
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#1
Lever wont open my door :c

Hi there its me again :c

i just want to make a lever opens a door....these door that can slide up... i searched the wiki and the forum and tried this:
PHP Code: (Select All)
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_open_01""openbigdoor");
}

void openbigdoor(string &in asEntityint alState)
     {
     if (
alState == 1)
     {
        
MoveEntityToArea("door_valve_open""ScriptArea_1"5.01.00.0"door_opened");
     return;
     
     }


i know that something is wrong, but how can i make it work? someone know? :/
(This post was last modified: 01-24-2012, 05:18 PM by Quotentote.)
01-24-2012, 04:55 PM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#2
RE: Lever wont open my door :c

Where is MoveEntityToArea?

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-24-2012, 04:58 PM
Find
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#3
RE: Lever wont open my door :c

dont understand your question, sorry :c do you mean where the area is or why i used it?
(01-24-2012, 04:58 PM)Tripication Wrote: Where is MoveEntityToArea?

01-24-2012, 05:00 PM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#4
RE: Lever wont open my door :c

im saying that i dont think MoveEntityToArea is a Script function...

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-24-2012, 05:01 PM
Find
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#5
RE: Lever wont open my door :c

MoveEntityToArea(string asEntityName, string asAreaName, float afSpeed, float afAcceleration, float afSlowDownRange, string asCallback);

from the wiki page :/
01-24-2012, 05:02 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Lever wont open my door :c

(01-24-2012, 05:02 PM)Quotentote Wrote: from the wiki page :/

I don't see it under HPL2.

Tutorials: From Noob to Pro
01-24-2012, 05:05 PM
Website Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#7
RE: Lever wont open my door :c

I cant find it on my wiki page.
http://wiki.frictionalgames.com/hpl2/amn..._functions

and its not in Apjjm's notepad++ Plugin...

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-24-2012, 05:05 PM
Find
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#8
RE: Lever wont open my door :c

http://wiki.frictionalgames.com/hpl1/doc...titytoarea

^^ well...whatever...how can i make it work then? Smile
01-24-2012, 05:07 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#9
RE: Lever wont open my door :c

Either SetMoveObjectState or SetMoveObjectStateExt should work for movable objects.

Tutorials: From Noob to Pro
01-24-2012, 05:10 PM
Website Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#10
RE: Lever wont open my door :c

I think(Not positive)but i think you'll find, that HPL1 was only used for the penumbra series...i could be sorely wrong and highly stupid...but i think...Anyway, im sorry, i dont know how to do this, but i remember in the main game, after opening the first Secret shelf, the wall raised...that may use a similar function.
http://wiki.frictionalgames.com/hpl1/projects_using_hpl

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-24-2012, 05:13 PM by Tripication.)
01-24-2012, 05:12 PM
Find




Users browsing this thread: 3 Guest(s)