How can you make a weapon usable (visable, selectable) in one level, and unusable(invisible, unselectable) in the next?
Weapons, on and off?
Weapons, on and off?
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?
How can you make a weapon usable (visable, selectable) in one level, and unusable(invisible, unselectable) in the next?
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
Re: Weapons, on and off?
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.
Herp derp.
Re: Weapons, on and off?
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
Spawn{() (or whatever)
weapon# = false
and to switch back, change to true
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56