Frictional Games Forum (read-only)

Full Version: Lever wont open my door :c
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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:
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? :/
Where is MoveEntityToArea?
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?

im saying that i dont think MoveEntityToArea is a Script function...
MoveEntityToArea(string asEntityName, string asAreaName, float afSpeed, float afAcceleration, float afSlowDownRange, string asCallback);

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

I don't see it under HPL2.
I cant find it on my wiki page.
http://wiki.frictionalgames.com/hpl2/amn..._functions

and its not in Apjjm's notepad++ Plugin...
http://wiki.frictionalgames.com/hpl1/doc...titytoarea

^^ well...whatever...how can i make it work then? Smile
Either SetMoveObjectState or SetMoveObjectStateExt should work for movable objects.
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
Pages: 1 2