Frictional Games Forum (read-only)
[SCRIPT] Calling a Script when button clicked - 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: [SCRIPT] Calling a Script when button clicked (/thread-21996.html)



Calling a Script when button clicked - Fatalist - 07-02-2013

Hello.
I try to do this script, but it dont work.

Code:
void function(string &in asParent, string &in asChild, int alState);
{
if(buttonpressed("mouse1", true)){
///stuff here
}
}

Its possible on hpl2 engine?


RE: Calling a Script when button clicked - PutraenusAlivius - 07-02-2013

I don't think so. You can define and make your own functions, but even if you do and it's great, the syntax is still wrong.


RE: Calling a Script when button clicked - Pshyched - 07-02-2013

I think the best way to call an interaction with an entity is to use the player interaction script.


RE: Calling a Script when button clicked - Your Computer - 07-02-2013

You won't have direct access to mouse events until HPL3.


RE: Calling a Script when button clicked - Fatalist - 07-03-2013

Bad news again(
Thanks for answer.