PDA

View Full Version : Vars and stuff


Slaktmaster
07-16-2001, 06:17 AM
If I do a weapon like this:

if (playerenters) {
timeout=1;
}

if (timeout) {
if (level.wee==1) {
setplayerprop #c,Wee;
}
timeout = 1;
}

I then make an NPC in the level that is like this:

if (playerenters) {
timeout = .05;
}

if (timeout) {
level.wee = 1;
timeout = .05;
}

Would this make the character say Wee when I enter the level and have the weapon?

Shard_IceFire
07-16-2001, 09:15 PM
um...couldn't you just do:

if (playerenters) {
setplayerprop #c,Wee;
}

Brady2
07-16-2001, 11:31 PM
Jadis:

Not if you're cool.

Slaktmaster
07-17-2001, 12:50 AM
You don't get it. I wanna know if a weapon can read vars set by another non-weapon NPC in the level.

grim_squeaker_x
07-17-2001, 01:26 AM
Originally posted by Slaktmaster
You don't get it. I wanna know if a weapon can read vars set by another non-weapon NPC in the level. Yes it can.

Slaktmaster
07-17-2001, 04:31 AM
Thanks Lady Midnight!