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
what c++ code can i use?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#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
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#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
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#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
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#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
Endlvl Offline
Junior Member

Posts: 28
Threads: 4
Joined: Aug 2011
Reputation: 0
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#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




Users browsing this thread: 1 Guest(s)