Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
In the coppercube engine the enemy can see through the wall, but how do I hide in the wall without being detected?

thanhtoanhb
Registered User
Quote
2018-11-11 15:47:56

In the coppercube engine the enemy can see through the wall, but how do I hide in the wall without being detected?


behroz-khan
Registered User
Quote
2018-11-11 17:45:53

Very Well Question, Dude! But I don't have an answer. What I have is just a hint...

IGI 2 developers make enemy's field of view so enemy could locate walls...If you played that game, you will have probably found a tactic to hide in the bushes and enemies would not find you... So bushes are also an obstacle to their field of view.

Here's a good understanding:
🔎︎


So I want to say that someone super intelligent like just-in-case could use this technique to answer you...


just_in_case
Moderator
Quote
2018-11-11 19:38:50

Well, maybe you can just add proximity behavior to the wall, and when enemey enters the proximity sphere, he changes his path to somewhere else instead of attacking player......

There are many ways to do this using the proximity behavior but yes, coppercube lacks a ray tracing feature... Or something which has been described by @behroz-khan

Am pretty sure we will be able to do this in near future..


tim12345
Guest
Quote
2018-11-12 04:12:27

hey that's a great question! i actually have this on my javascript programming TODO list. i just havn't got around to it yet. like the photo that behroz-khan posted:
🔎︎

seems like it would just be some mathematical equations while detecting if something is blocking the path between the eyesight of the a.i. and the player. i'll get to studying!


behroz-khan
Registered User
Quote
2018-11-12 18:06:31

just-in-case wrote:
Well, maybe you can just add proximity behavior to the wall, and when enemey enters the proximity sphere, he changes his path to somewhere else instead of attacking player......


What if he attacks not in proximity to the wall... That would be useful when using path-finding.. But he is saying how to make enemy not see through walls... So can you create a ray tracing code???


thanhtoanhb
Registered User
Quote
2018-11-13 08:48:37

I'm not a programmer but I think it involves artificial intelligence


behroz-khan
Registered User
Quote
2018-11-13 11:48:55

Yep! Exactly. You got the point... I am not the programmer too!
Only just-in-case is the programmer here!


just_in_case
Moderator
Quote
2018-11-13 14:04:06

wrote:
just-in-case wrote:
Well, maybe you can just add proximity behavior to the wall, and when enemey enters the proximity sphere, he changes his path to somewhere else instead of attacking player......


What if he attacks not in proximity to the wall... That would be useful when using path-finding.. But he is saying how to make enemy not see through walls... So can you create a ray tracing code???


I always prefer to be correct with my wordings.... what i said is not related to path finding but it is related to the player detection by the enemy..

as @thanhtoanhb asked to hide behind a wall and enemy will just ignore him...

that's what i was suggesting to him, that he can use proximity behavior with walls for example when player is in the proximity are of the wall he will get ignored by the enemy... but he has to use box, instead of proximity sphere.. to work with this method...

and there are many methods to do this...

this is the only thing possible right now... because there is nothing like field of view in coppercube for enemy...
it is same as proximity sphere, when the player gets into the activation radius(proximity radius of the enemy) enemy will start following or shooting the player... which means you can't use field of view or something similar to stop detection of the player.... i may be wrong regarding this... but as far as i know thats how the AI behavior for the enemy works in coppercube..

the way i suggested is just a workaround to do this...untill we get a powerfull Ai script or ray casting/ ray tracing.... which can be then usefull in creating path finding or the method proposed by you.(field of view method)

for you comment regarding programming....

Am a non programmer too..lolz... programming needs good mathematical skills.. and you will surely laugh if i say that i got 002 out of 100 in my high school grades in mathematics...

the only thing is that , i am good with logics and tweaking of programs and good with variables, if else statement...






behroz-khan
Registered User
Quote
2018-11-15 12:57:00

Hmm.. Oh I understood now! I apologize for misunderstanding.
What the???? Are kidding me? 002 out of 100 marks???'
Math is the easiest subject, man!


Create reply:


Posted by: (you are not logged in)


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