May 23, 2012, 11:42:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: EnterProximity  (Read 325 times)
davidochoa
Newbie
*
Posts: 34


View Profile
« on: March 23, 2011, 02:19:36 PM »

I have a couple of questions:

a) As far I can see the only objects capable of triggering proximity events are those marked as player:
EnterProximity
But in the templates there is a check to see if the event is triggered by the player:
Code:
if (params.player != null)
is there a way for non-player objects to trigger proximity events or this validation has other purpose?

b) If other objects can trigger this event how do I get a handle to that object?

Regards
Logged
LutinMalefique
Full Member
***
Posts: 146



View Profile WWW
« Reply #1 on: March 23, 2011, 03:20:40 PM »

Yes david,
only "player character" can enter proximity. If you want other objects to enter proximity, you need to use "CreatePlayer" function (http://www.gamecore3d.com/docs/scripting-reference/classes/GameManager/CreatePlayer).
The word "player" not always means "THE PLAYER" who play.

 Take a look at the "simple bad guy controller", line 248 to know how to do that.
« Last Edit: March 23, 2011, 03:22:52 PM by LutinMalefique » Logged

http://lutinmalefique.wordpress.com/
"Just remember: a damn game can be played, and if you have not created something that can be played, it's not a damn game!" Derek Yu
davidochoa
Newbie
*
Posts: 34


View Profile
« Reply #2 on: March 23, 2011, 04:07:52 PM »

Thanks, that clarified it, now I return to implement the AI actions.

Regards
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!