How add capturable vehicles to map?
11 Jan 2014, 15:52 PM
#1

Posts: 10
need add capturable vehicles to map?
11 Jan 2014, 16:04 PM
#2



Posts: 3421 | Subs: 11
Unless there are actual placeable objects, this would require scar scripts. I could provide a tutorial if necessary.
11 Jan 2014, 16:11 PM
#3

Posts: 10
Unless there are actual placeable objects, this would require scar scripts. I could provide a tutorial if necessary.
Is it so difficult? and i can understand without tutorial
11 Jan 2014, 16:12 PM
#4



Posts: 3421 | Subs: 11
Have you done any SCAR scripting before?
11 Jan 2014, 16:14 PM
#5

Posts: 10
11 Jan 2014, 16:19 PM
#6



Posts: 3421 | Subs: 11
For example:
- Place a panther squad to the map, leave the ownership to "World" (neutral)
- Select it and assign it to a Squad Group (Press Ctrl + U)
- Give the Squad group a name, eg. "sg_panther" without quotation marks.
- Add this Scar script to your <mapname>_ID.scar file:
Code
-- List all vehicles to abandon in this table. Use comma as separator.
local t_AbandondedVehicles = {sg_panther}
local player = World_GetPlayerAt(1)
for key, sgroup in ipairs(t_AbandondedVehicles) do
Command_PlayerSquadCriticalHit(player, sgroup, PCMD_CriticalHit, BP_GetCriticalBlueprint("vehicle_abandon"), 1, false)
end
Save the <mapname>_ID.scar file and goto WorldBuilder. Run "Export Package". Make sure to save the map before editing <mapname>_ID.scar by hand. Otherwise WorldBuilder will re-generate this file and all manual edits will be lost.
11 Jan 2014, 16:24 PM
#7

Posts: 10
For example:
- Place a panther squad to the map, leave the ownership to "World" (neutral)
- Select it and assign it to a Squad Group (Press Ctrl + U)
- Give the Squad group a name, eg. "sg_panther" without quotation marks.
- Add this Scar script to your <mapname>_ID.scar file:
Code
-- List all vehicles to abandon in this table. Use comma as separator.
local t_AbandondedVehicles = {sg_panther}
local player = World_GetPlayerAt(1)
for key, sgroup in ipairs(t_AbandondedVehicles) do
Command_PlayerSquadCriticalHit(player, sgroup, PCMD_CriticalHit, BP_GetCriticalBlueprint("vehicle_abandon"), 1, false)
end
Save the <mapname>_ID.scar file and goto WorldBuilder. Run "Export Package". Make sure to save the map before editing <mapname>_ID.scar by hand. Otherwise WorldBuilder will re-generate this file and all manual edits will be lost.
thnx no working(((
11 Jan 2014, 17:14 PM
#8

Posts: 10
thnx no working(((
do not correctly
wait tutorial))))
PAGES (1)

0 user is browsing this thread:
Livestreams
![]() |
![]() |
![]() |
147 | ||
![]() |
![]() |
![]() |
77 | ||
![]() |
![]() |
![]() |
24 | ||
![]() |
![]() |
![]() |
18 | ||
![]() |
![]() |
![]() |
68 | ||
![]() |
![]() |
![]() |
25 | ||
![]() |
![]() |
![]() |
19 | ||
![]() |
![]() |
![]() |
9 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.42963.872+7
- 2.52875.876+1
- 3.303163.650+3
- 4.12644.741-1
- 5.312114.732+8
- 6.289112.721+1
- 7.14760.710-2
- 8.272159.631+1
- 9.6717.798+5
- 10.13665.677+4
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
13

Download
1329
Board Info
814 users are online:
814 guests
1 post in the last 24h
33 posts in the last week
59 posts in the last month
33 posts in the last week
59 posts in the last month
Registered members: 52216
Welcome our newest member, Skura
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Skura
Most online: 2043 users on 29 Oct 2023, 01:04 AM