Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello. I am learning how to use Behaviors and Actions in CopperCube. It's a lot of fun. Here's my question: How can I set up a door to open on a key press (such as pressing "E") but ONLY when the camera/player is within proximity of the door? I don't want the player to press "E" and have every door in the level open if I want to use "E" as an interact key. So, I want "E" to only affect things within proximity of the player/camera. I can see, via Behaviors/Actions how to do one or the other (door open on proximity or door open via key press), but not both. Any help would be appreciated. Thanks. |
||||
|
Ok! I figured it out by using VARIABLES! Woohoo!!! This is fun. ;) |
||||
|
how did you do it can you tell me? |
||||
|
wrote: how did you do it can you tell me? I know man. I learned it by myself as argentarts did. First set on proximity set variable "Door 1" to 1 and when proximity leaves set variable "Door 1" to 0 When key "E" is pressed check variable "Door 1" is 1, Open Door 1 Simple.. Isn't it? |
||||
|
so basically when the varible is on 1 or the other an animation happens right? |
||||
|
Hmm... Sorry didn't understand you.. Tell me again |
|