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


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

Posts: 72
Threads: 3
Joined: Sep 2010
Reputation: 0
#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
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#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




Users browsing this thread: 2 Guest(s)