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


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Using funcdefs
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: [Tutorial] Using funcdefs

(08-13-2011, 04:39 AM)Endlvl Wrote: Of course I use custom functions but I dnt ever start with functdef. My question is y u can't append data types to the standard functions such as adding an Int to the timer function and also since I get fairly confused with engine exe c++ on the blog will hPl3 have stuff like object.xpos or thing.active (if I'm not comPletdly lost thOse are method right?)

AngelScript supports function overloading (i.e. declaring a function with the same name but with differing parameters and (or) return types), so it is possible, for example, to have the AddTimer function return an int.

Methods are functions within a class. As you should know, functions require starting and ending parentheses. Without the parentheses the parser will assume that you are trying to access a variable within an object.

Tutorials: From Noob to Pro
(This post was last modified: 08-13-2011, 05:22 AM by Your Computer.)
08-13-2011, 05:21 AM
Website Find


Messages In This Thread
[Tutorial] Using funcdefs - by Apjjm - 08-12-2011, 09:57 PM
RE: [Tutorial] Using funcdefs - by DRedshot - 08-12-2011, 11:59 PM
RE: [Tutorial] Using funcdefs - by Endlvl - 08-13-2011, 04:39 AM
RE: [Tutorial] Using funcdefs - by Your Computer - 08-13-2011, 05:21 AM
RE: [Tutorial] Using funcdefs - by plutomaniac - 08-13-2011, 08:49 AM
RE: [Tutorial] Using funcdefs - by Apjjm - 08-14-2011, 12:43 AM
RE: [Tutorial] Using funcdefs - by palistov - 10-31-2011, 01:54 AM



Users browsing this thread: 2 Guest(s)