安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													
 
					 
 
 讨论规则及指引
 讨论规则及指引 2
 2							
 举报此帖
 举报此帖


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.