Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I want the player to not be able to hold their weapon even while playing, until a certain point in the story.
1.
you can just restrict them from getting the sword, hammer, bow, or spear upgrade, but they wont be able to get it later on
2.
you can mind transfer them into another robot, and put unequip weapons active until you want them to have a weapon, but they wont be in a human robot
3.(modded)
do the same as the last method, but install a mod with a playerdummy to mindtransfer them into (idk which mod tho)
There is an easy way to do what you are asking. All you need to do is set up a player animator, 2 triggers, and 2 animation tracks.
-First place the player animator. Set it to "Don't Lock Movement" and set the "Seconds to Tween Pos" to 0. Create 2 animation tracks. All the animation work will only require you to use the player animator.
-Your first animation track will disarm the player. The disarm animation track should use the call method "Take control of player" and check "Unequip weapons" at the start of the animation. It will be a good idea to copy and paste the nodes at the 0.25 second mark in case the animation does not work properly. If you want the player to stay disarmed after dying and respawning, set the animation to "Looping"
-Your second animation track will arm the player for combat. The arming animation track should use the call method "TryEquipWeapon" and uncheck "Unequip weapons" at the start of the animation. At the 0.25 second mark, you should use the call method, "Release Player".
-Now set up 2 "PlayerUseKeyTriggers". Make sure to label them "DisarmPlayer" and "ArmPlayer" so it's easier to organize. For your disarm animation, make it to play on "DisarmPlayer" and stop on "ArmPlayer". For your arming animation, make it play on "ArmPlayer" and stop on "DisarmPlayer".
Now that you set up the animations and triggers, you can test them out and see if they work. It should do what you had in mind. This can work for any situation with any weapons. Just keep in mind if the players have kick or flame breath, they can still use it even if you disarm them.