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
callback syntax altering
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: callback syntax altering

You were close.
Jens showed you how it is supposed to look.

Usually you'd put '()' if what you're trying to call is a function (Which 'alState' isn't).
Ex.

PHP Code: (Select All)
void OnEnter()
{
ChangePlayerStateToNormal();


And the 'int' is a declaration of the variable 'alState' that you're going to be using. It should only be declared in the first line, where all the parameters go.
Ex.
PHP Code: (Select All)
void CollideFunction(string &in asParentstring &in asChildint alState

Also:
I'm not sure if the HPL engine will give you an error for this, but when you have a decimal number you should write an 'f' after it, to show that it's a float.
Ex.
PHP Code: (Select All)
FadeRadialBlurTo(0.03f0.03f); 

Trying is the first step to success.
10-28-2015, 05:09 PM
Find


Messages In This Thread
callback syntax altering - by Southlaguna - 10-28-2015, 09:04 AM
RE: callback syntax altering - by jens - 10-28-2015, 09:20 AM
RE: callback syntax altering - by FlawlessHappiness - 10-28-2015, 05:09 PM
RE: callback syntax altering - by Southlaguna - 11-03-2015, 12:07 PM



Users browsing this thread: 1 Guest(s)