Frictional Games Forum (read-only)
Lever wont open my door :c - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Lever wont open my door :c (/thread-12838.html)

Pages: 1 2


Lever wont open my door :c - Quotentote - 01-24-2012

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? :/



RE: Lever wont open my door :c - Tripication - 01-24-2012

Where is MoveEntityToArea?


RE: Lever wont open my door :c - Quotentote - 01-24-2012

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?




RE: Lever wont open my door :c - Tripication - 01-24-2012

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


RE: Lever wont open my door :c - Quotentote - 01-24-2012

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

from the wiki page :/



RE: Lever wont open my door :c - Your Computer - 01-24-2012

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

I don't see it under HPL2.


RE: Lever wont open my door :c - Tripication - 01-24-2012

I cant find it on my wiki page.
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

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


RE: Lever wont open my door :c - Quotentote - 01-24-2012

http://wiki.frictionalgames.com/hpl1/documentation/script_reference?s[]=moveentitytoarea

^^ well...whatever...how can i make it work then? Smile



RE: Lever wont open my door :c - Your Computer - 01-24-2012

Either SetMoveObjectState or SetMoveObjectStateExt should work for movable objects.


RE: Lever wont open my door :c - Tripication - 01-24-2012

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