Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lever wont open my door :c
Author Message
Quotentote Offline
Member

Posts: 118
Joined: Dec 2011
Reputation: 11
Post: #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 all posts by this user Quote this message in a reply
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 all posts by this user Quote this message in a reply
Quotentote Offline
Member

Posts: 118
Joined: Dec 2011
Reputation: 11
Post: #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 all posts by this user Quote this message in a reply
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 all posts by this user Quote this message in a reply
Quotentote Offline
Member

Posts: 118
Joined: Dec 2011
Reputation: 11
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 all posts by this user Quote this message in a reply
Quotentote Offline
Member

Posts: 118
Joined: Dec 2011
Reputation: 11
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Tripication Offline
Member

Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)