≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
problem valure limit?
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b][/b] wrote: For example ypu want to load player health from line 1 then you can use this command where i have a file saved as filename.txt with a value like 100 or anything as a player_health and i want to use it as a vraible in my game.. [Code]var Line_to_print = 1 ; var text = ccbReadFileContent("Filename.txt"); var lines = text.split("\n"); var stringlength = lines.length + 1 - Line_to_print; var renderlines = lines[lines.length-stringlength]; var effect = renderlines; ccbSetCoppercubevariable("player_health",effect)[/code] Here line to print is the line you want to use as value for the variable player_health You can also use thia method to wite your own behavior to load a line from a file and then use it to set coppercube variable... If possible i will create this behavior after a week.... Cause am out of town right now.. Hope the above code will work as expected.[/quote]
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