if object view

Started by , Tue 11/11/2003 10:52:12

Previous topic - Next topic

Guestywesty

is there a 'if object view' command?? if so how do u use it??  ???  

thanx in advance

Ishmael

#1
No, AFAIK, but you can go around it by using:

struct RoomData {
int objview[15];
}

function SetObjView(int obj, int view) {
PlrRoom.objview[obj ] = view;
SetObjectView(obj, view);
}

in the beginning of the Global Script, then, in the script header:

#define MAX_ROOM_NUM = y;
import RoomData PlrRoom[MAX_ROOM_NUM];
import function SetObjView(int,int);

replaceing the y with the highest room number you have in your game, and then you just use SetObjView instead of SetObjectView when settings them views, and when you want to check which view an object is using, just use

if (PlrRoom.objview[x ] == z)

to check it.

...

Does this work in theory?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

guestywesty

Cheers TK,

it would work (i think) but i only need it for one puzzle, so im jus guna have a lota objects one for each view and do it like that, with the isobjecton command.

l8rs

SMF spam blocked by CleanTalk