0 registered members (),
1,209
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: detect where player is
[Re: Gerrit]
#239746
12/06/08 23:30
12/06/08 23:30
|
Joined: Sep 2001
Posts: 375 Hamburg, Germany / Springfield...
Andreas C
Senior Member
|
Senior Member
Joined: Sep 2001
Posts: 375
Hamburg, Germany / Springfield...
|
Alternatively you could use "zones" ... by this I mean that you have invisible, passable blocks. When the player collides with one of them (i.e. steps into / onto them) you set a global "zone variable" to indicate which "zone" (or room) he is in.
Then your action only needs to check the "zone variable" to determine the whereabouts of the player.
This, of course, does not pinpoint the exact location of the player. It only tells you in which zone he is ... but maybe that's good enough for what you want to do ?
Cheers, Andreas
(I used something similar with A5 to determine which torches in a dungeon needed to be "lit" when the player was near ... just so as to limit the number of active particle emitters etc.)
____________________________________________________ GameCore / Unity / UDK Lightwave 9.6 / Blender / Fragmotion / ZBrush 3.5 TextureMaker / PSP-X
|
|
|
|