Weapon use - once per level

Is there a way to make a weapon use only 1 per level? I have a character that can "equip" weapons at will, is it possible to restrict a weapon to once per level?
 
You want the players to start in weapon mode in the beginning of the level? If one player with its weapon mode dies, do you want that player to still carry weapon mode or go back to normal without weapons after respawning?
 
the player can "equip" the weapon any time during the level, but once it used up, a gun in this case, the player cant "re-equip" the weapon

Currently I use a freespecial and weaponframe to allow the player equip the weapon
 
transformation using weaponframe

anim freespecial195
loop 0
delay 30
offset 80 129
bbox.position.x 68
bbox.position.y 83
bbox.size.x 24
bbox.size.y 44

weaponframe 8 11 ####11 is the weapon model that is being switched too

sound data/sounds/jeff19.wav
frame data/chars/2jeff/gure01.gif
 
correct, model A is base model, Model B is "gun" model that can only be used once per level. Right now when you go back to model A you can stil ue the freespcial to "equip" the gun again.
ah, so you can revert back to model A.
As BB said, you can lock the FREESPECIAL195 by using an entity variable and checking it before executing the move.
basically, your FREESPECIAL195 will be just a check - if the variable isn't set, make the character to move to a new FREESPECIAL. If the variable is already set, just complete the animation. (or you can check if the varible is active and, if positive, revert the character to its idle animation).
 
Back
Top Bottom