Remove a object in another room...

Started by HillBilly, Fri 13/06/2003 18:01:37

Previous topic - Next topic

HillBilly

Does anybody know how you remove a object from another room than you are in? Like, if you are in room 13, and then you press a button or whatever, then object 0 in room 15 will be removed.


Thanks,
-Adrian

spook1

You could do such a thing using global integers.

Define in the global script:
SetGlobalInt(80,0); // indicator for button pressed (0: not pressed, 1 pressed)

In room 14:

if (some action, press button e.g.) SetGlobalInt(80,1);

In room 15: (where you want the action to take place)

(Before player enters room)

if (GetGlobalInt(80) == 1) ObjectOff(0);


Hope this helps,

Martijn

Timosity

#2
in room 13 when you press the button

SetGlobalInt(10,1);

then in room 15 before fade in

if (GetGlobalInt(10)==1) {
ObjectOff(0);
}

Edit:yep that too

HillBilly


SMF spam blocked by CleanTalk