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
Script Help Calling a Script when button clicked
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#1
Calling a Script when button clicked

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

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

Its possible on hpl2 engine?

07-02-2013, 07:16 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Calling a Script when button clicked

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.

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-02-2013, 07:22 AM
Find
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#3
RE: Calling a Script when button clicked

I think the best way to call an interaction with an entity is to use the player interaction script.
07-02-2013, 08:42 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Calling a Script when button clicked

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

Tutorials: From Noob to Pro
07-02-2013, 09:08 AM
Website Find
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#5
RE: Calling a Script when button clicked

Bad news again(
Thanks for answer.

07-03-2013, 03:51 AM
Find




Users browsing this thread: 1 Guest(s)