安装 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(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													

 24
 24								 此主题已被置顶,因此可能具有重要性
  此主题已被置顶,因此可能具有重要性	 
					




 举报此帖
 举报此帖


I was hoping that I could run this in paralel with your SCAM script and just have a base with automated mining and combat drones which would be very cool.
Thrusters are not required.
1. Updated script to 0.9.97
2. Created 3 timers. Named them Timer [fire], Timer [cease] and Timer [ref].
3. Added all those timers to group hd-coax. (Tried using [hd-coax] but it causes errors on the script).
4. Recompiled the PB and ran command:clear-defs
5. Added actions for fire and cease timers. For Timer [fire] I added the action coaxial-weapons shoot on. For Timer [cease] I added coaxial-weapons shoot off. I left Timer [ref] as it is.
6. Testing - Added hostiles and issued attack commands.
[hd-coax] is a group tag not the group name. From building guide:
'heavy dakka [hd-coax][ripple][v=500][r=1000][fwO=2][d=5]'
Not sure about errors. Maybe because you didn't have the group name to be tagged and just made a group from a combination of tags only?
'You can add two timers and tag them [fire] and [ceise]. The code would trigger appropriate timer when it needs to start or stop firing. You should tag one of them [ref] to be used as bore reference.'
You don't need 3 timers. 2 is enough, and one of them should be ref. Otherwise, ref would be picked randomly from one of those two.
For reference, because I'm still testing things I'm using your default drone replaced the script with your updated one. My aim is to have the coaxial-weapons group to fire when the code triggers when it needs to start or stop firing. So I have to setup the action for Timer 1 [fire] right? So I setup the coaxial-weapons shoot on for Timer 1 [fire] but the weapons still won't fire.
You make a group 'some unique name [hd-coax][v=500][r=1000]'.
Place a timer named 'Timer [fire][ref]'.
Place a timer named 'Timer [cease]'.
Add both timers to the group.
Done.
The second timer would be triggered when the code decides to stop firing.
During design time, I strongly suggest reading the PB screen log.
Alright what I was confused about was the tag. Didn't know I should combine the tag [fire] and [ref] in 1 timer block. So I followed this example, my group is Timer [hd-coax][v=500][r=1000] and under this group are Timer [fire][ref] and Timer [cease]. Recompiled and ran command:clear-defs, issued an attack command but coaxial-weapons group still not firing. Btw, I noticed that the Timer [fire][ref] is always toggled off. Is that suppose to behave like that?
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2901725542
Just take it and let's finish this.
Thank you cheerkin for your time, effort and patience regarding this.