≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Stealth in CopperCube?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: [quote][b]josefumo[/b] wrote: Like hide behind objects so enemy can't see you. Is it possible?[/quote] Yes, as mentioned use javascript to check when an enemy is activated or within distance to player to do something, then make the enemy face the player and then run "ccbGetCollisionPointOfWorldWithLine(startX, startY, startZ, endX, endY, endZ)" to get view collisions. With this collision location see if that line from the enemy to this collision point intersects the player bounding box using "ccbDoesLineCollideWithBoundingBoxOfSceneNode(node, startX, startY, startZ, endX, endY, endZ)" to see if they player is in view of the enemy and adjust accordingly..[/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