[SOLVED] Take off weapons

betterbold

Active member
Hi, I make player character can transform by his freespecial.
Then I want to make that he(with weapon) can take off weapon by his freespecial too.
This might be basic, but could you tell me... :)
 
What he said just remember your weapon model by defualt copies all animations from your main hero except animations you set in your weapon model so if the both have  freespecial3 then one can be used to put weapon on and one to take it off.
 
Oh, thank you guys. Sorry for my bad english.
Player "girl" push down button then transform "squid" but I don't know how to return "girl".

I think that make another weapon "girl2" and "squid" use it... Is it wrong ? ???
 
You just use the same code you used to transform her into squid. You don't need to create ANOTHER weapon for it.

weapons {name1} {name2} {name3} {name4} {name5} {original name}

~This command sets other model which will be used to replace this entity when a weapon is picked up.
~{name#} is the name of the model which this character becomes when they pick up weapon #. # is weapon's number. Don't forget to load the model in models.txt.
~{original name} is the name of the character when it doesn't have any weapons equipped.
~If {name#} is filled with none, this entity can't pick respective weapon.

So player GIRL has this weapon setting:

Code:
weapon squid girl

While SQUID has this setting
Code:
weapon girl squid

Just use weaponframe

weaponframe {frame} {weapon}

~This is used to switch weapon in an animation.
~{frame} determines at which frame the weapon is switched.
~{weapon} is weapon's number determines which weapon will be used to replace.
~Obviously you need to provide weapon sets for the character first before using this.
 
betterbold said:
Player "girl" push down button then transform "squid" but I don't know how to return "girl".

Hm.. Have you tried to press up?
Okay bad joke but now seriously, are you not already using the weaponframe to make it work when pressing down? If so, can't you just using it again to transform back?
Or if you are not already using the weaponframe command for the "push down button then transform", care to share how you did this in first place? Then we may be able to give you more specific help  ???
 
@O Ilusionista
It works !! Thanks to you. ;D
I enjoy Openbor for a long time but I don't know it. Thanks again !!

@magggas
Thanks for your comment.
I'm interested your idea. :D
 
Back
Top Bottom