ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Quad damage and light of the player
person icon
Stewww
Guest
Quote
2026-02-09 16:40:25

Guys, I need help, in general, I wanted to make a game like an original quack. And it got to the point that I had to do quad damage. I've been afraid of this problem for three days.

In general, everything is like this,

I have quad damage

It rotates and emits light, but I want the pre-set light that I made invisible to light up in the player.

Well, in short, I want to make it so that when entering the quad, the character has a blue color that means a quad on the player, but it doesn't work! I checked everything... And the quad itself (using sounds that indicated changes in the variable quad player = 1)

Then 30 seconds should pass and the value of the quad player will be 0, with the quad everything is clear, it works, sets the variables and makes sounds... the problem is precisely in the light source in the character, it does not turn on (I'm sure of it), in general, it checks every millisecond whether the value of the quad player is equal to one, if yes, the light should work if not, it becomes invisible, and it does nothing else…

Maybe someone knows what the problem is? And if it's not difficult for anyone, can you tell me how to do 4 damage during this? Thank you very much!)

person icon
okeoke
Registered User
Quote
2026-02-09 18:22:03

Behaviors are not executed on invisible nodes, so if behavior that checks for variable to be 1 is attached to invisible light source it will not be executed.

You probably have "When the key is pressed do something" action that you use to shoot. You can add "If a variable has value do something" to it, set it to check the same quad damage variable value. and then two actions in if and else blocks - one with normal damage, another one with x4.

person icon
Stewww
Guest
Quote
2026-02-09 19:32:15

Thanks but what i need to do with my light?

person icon
okeoke
Registered User
Quote
2026-02-09 21:12:03

If that's the case, put behaviour that changes light node visibility to a node that is always visible. Player camera or root node fx


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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