Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The trick with the sound
Author Message
Armored Cow Offline
Member

Posts: 72
Joined: Sep 2010
Reputation: 0
Post: #11
RE: The trick with the sound

I'm curious. When you make a function, how do you know what to put into the parentheses?

Such as
TimerCreakDoor(string &in asTimer)
Or
UseKey(string &in asItem, string &in asEntity)

Or the one you posted. I don't understand how you can determine what goes in there.
09-19-2010 10:08 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #12
RE: The trick with the sound

I am using the Script Functions in the Wiki for reference.

To give an example:
//Function syntax: Func(string &in asTimer)
void  AddTimer(string& asName, float afTime, string& asFunction);

The first line tells me that I have to use (string &in asTimer) as parameters for a function I call with a timer.
MyFunction(string &in asTimer)

09-19-2010 11:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)