Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
exempler save position player txt

refresh
Guest
Quote
2018-02-02 10:17:47

Hello it is possible to have a small example where you save the position of the player thanks


niko
Moderator
Quote
2018-02-04 06:56:37

You could do it like this:


var player = ccbGetSceneNodeFromName("player");
var position = ccbGetSceneNodeProperty(s, "Position");
var p = "pos: " + position;
ccbWriteFileContent("position.txt", p);



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact