Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
IF two models have the same name, what happen to setting xxx.health ?

bracer
Registered User
Quote
2017-05-19 07:35:12

If both models have the same name [when you clone for example or name them the same in the inspector], what happen when you do "bbc Set Copper Cube Variable(" [hash symbol] Monster.health") ?"

If they both have the same name "Monster" ?!!!!


niko
Moderator
Quote
2017-05-19 08:13:34

It just takes the first object it finds with that name.


bracer
Registered User
Quote
2017-05-19 15:17:15

Since ccbCloneSceneNode clones another scene node but keeps the same name instead of appending a number to it...this can be bad...unless we handle the appending ourselves which can be done.

Thanks for replying Niko.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (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