| 
		
	
		| DRedshot   Senior Member
 
 Posts: 374
 Threads: 23
 Joined: Jun 2011
 Reputation: 
11
 | 
			| 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 |  |  
	
		| Apjjm   Is easy to say
 
 Posts: 496
 Threads: 18
 Joined: Apr 2011
 Reputation: 
52
 |  |  
	| 08-11-2011, 12:03 AM |  |  
	
		| DRedshot   Senior Member
 
 Posts: 374
 Threads: 23
 Joined: Jun 2011
 Reputation: 
11
 | 
			| 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 |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| 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.
			 
 |  |  
	| 08-11-2011, 04:46 AM |  |  
	
		| nemesis567   Posting Freak
 
 Posts: 874
 Threads: 65
 Joined: May 2011
 Reputation: 
10
 | 
			| 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 |  |  
	
		| Apjjm   Is easy to say
 
 Posts: 496
 Threads: 18
 Joined: Apr 2011
 Reputation: 
52
 | 
			| 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 |  |  
	
		| Endlvl   Junior Member
 
 Posts: 28
 Threads: 4
 Joined: Aug 2011
 Reputation: 
0
 | 
			| 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 |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| 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.
			 
 |  |  
	| 08-11-2011, 09:19 PM |  |  
	
		| DRedshot   Senior Member
 
 Posts: 374
 Threads: 23
 Joined: Jun 2011
 Reputation: 
11
 | 
			| 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 |  |  |