want to know in which room i am

Started by Rocco, Mon 01/05/2006 23:00:55

Previous topic - Next topic

Rocco

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)

strazer

AGS v2.62 and below:

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

AGS v2.70 and up:

  if (player.Room == 30) {

Rocco


strazer


SMF spam blocked by CleanTalk