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

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what c++ code can i use?
Author Message
DRedshot Offline
Senior Member

Posts: 373
Joined: Jun 2011
Reputation: 11
Post: #1
what c++ code can i use?
Title says most of it, to what extent can i use c++ in angelscript? I am very new to c++, and have only made a couple of scripts with it. (Mainly maths based ones and stuff)
can i use any functions which do not require a header #include to work?
as i've said im new to c++ and programming in general, so i don't know the names / terminology of stuff, but hopefully you understand what i mean, Thanks!

also, more specifically, are there any cool or useful tricks you can do with c++ in angelscript? thanks again!

08-10-2011 10:10 PM
Find all posts by this user Quote this message in a reply
Apjjm Online
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #2
RE: what c++ code can i use?
Angelscript has some documentation covering what you can do in it:
http://www.angelcode.com/angelscript/sdk...cript.html

Most of the basics from c++ are there.

(This post was last modified: 08-11-2011 12:04 AM by Apjjm.)
08-11-2011 12:03 AM
Find all posts by this user Quote this message in a reply
DRedshot Offline
Senior Member

Posts: 373
Joined: Jun 2011
Reputation: 11
Post: #3
RE: what c++ code can i use?
so just to get this straight, I can use any function; statement, expression or keyword listed on that site, and it will work fine in .HPS script? as a random example, can i use Script Classes, or Object Handles? Thanks for the help

08-11-2011 03:34 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #4
RE: what c++ code can i use?
(08-11-2011 03:34 AM)DRedshot Wrote:  can i use Script Classes, or Object Handles?

Yeah, but that should be more practical for HPL3.

Tutorials: From Noob to Pro
08-11-2011 04:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nemesis567 Offline
Posting Freak

Posts: 840
Joined: May 2011
Reputation: 10
Post: #5
RE: what c++ code can i use?
What do you mean by saying that should be more practical for HPL3?

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
08-11-2011 04:33 PM
Find all posts by this user Quote this message in a reply
Apjjm Online
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #6
RE: what c++ code can i use?
(08-11-2011 04:33 PM)nemesis567 Wrote:  What do you mean by saying that should be more practical for HPL3?
HPL2 only saves the state of variables using the SetLocalVar/SetGlobalVar functions. States of classes aren't saved, and certain features can't be used (import functions).

(This post was last modified: 08-11-2011 04:47 PM by Apjjm.)
08-11-2011 04:46 PM
Find all posts by this user Quote this message in a reply
Endlvl Offline
Junior Member

Posts: 28
Joined: Aug 2011
Reputation: 0
Post: #7
RE: what c++ code can i use?
Dear god i cant wait for HPL3 it is such a pain to not be able to access the objects world coordinates
08-11-2011 04:48 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #8
RE: what c++ code can i use?
(08-11-2011 04:46 PM)Apjjm Wrote:  
(08-11-2011 04:33 PM)nemesis567 Wrote:  What do you mean by saying that should be more practical for HPL3?
HPL2 only saves the state of variables using the SetLocalVar/SetGlobalVar functions. States of classes aren't saved, and certain features can't be used (import functions).

Also, the current functions of HPL2 that deal with callbacks may not be capable of handling object handles. I say "may not" because i haven't tested it out yet, but given that you are passing a string to the callback parameter, it should be safe to assume that it won't properly handle object handles.

Tutorials: From Noob to Pro
08-11-2011 09:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DRedshot Offline
Senior Member

Posts: 373
Joined: Jun 2011
Reputation: 11
Post: #9
RE: what c++ code can i use?
thanks for the help everyone, i am also looking forwards to HPL 3, it looks like there will be a lot more options and customisability/flexibility than in HPL 2.

(This post was last modified: 08-11-2011 09:55 PM by DRedshot.)
08-11-2011 09:53 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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