ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Programming and Scripting
exempler save position player txt
Author Text

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: "Internatio?al" (you are not logged in)


Text:

 

  

Forum 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


   





Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.