Page 1 of 1

Weapons, on and off?

Posted: Wed Apr 30, 2008 8:21 pm
by GMer
I'm a little unsure if I'm posting this in the right place...
How can you make a weapon usable (visable, selectable) in one level, and unusable(invisible, unselectable) in the next? :mrgreen:

Re: Weapons, on and off?

Posted: Sat May 03, 2008 2:04 am
by darksmaster923
When the level changes, simply take the weapon away from the player. There are several ways you could do this. I prefer using a script where I can use the SetAttribute command to take the weapon attribute away from the player.ini file. I am pretty sure you could do this with an entity, but I don't have much experience with entities, since I usually just replace them with scripts.

Re: Weapons, on and off?

Posted: Mon May 19, 2008 8:06 pm
by GMer
Just have a script attached to an "invisible" actor in the desired level like so:

Spawn{() (or whatever)
weapon# = false

and to switch back, change to true