Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rocco on Mon 01/05/2006 23:00:55

Title: want to know in which room i am
Post by: Rocco on Mon 01/05/2006 23:00:55
hi all,

the problem is, i dont know which player is active at this moment, so i cant
use this command -> character[3].room to get the room number.
i need something like this GetPlayerCharacter().room or
game.room.
for a command similar to this
if(game.room == 30)
Title: Re: want to know in which room i am
Post by: strazer on Mon 01/05/2006 23:04:26
AGS v2.62 and below:

  if (character[GetPlayerCharacter()].room == 30) {

AGS v2.70 and up:

  if (player.Room == 30) {
Title: Re: want to know in which room i am
Post by: Rocco on Mon 01/05/2006 23:10:05
Big thx  :)
Title: Re: want to know in which room i am
Post by: strazer on Mon 01/05/2006 23:12:33
You're welcome! :)