Login

russian armor

Scar Commander Ability's

30 Jul 2014, 14:15 PM
#1
avatar of lankyfatninja

Posts: 7

There have already been multiple threads on this topic but so far I have had no luck.

I have been trying to add a new ability for each player to my map which consists of a tiger tank or tiger ace.

I have tried the following;

Player_AddAbility(player, BP_GetAbilityBlueprint("tiger_tank_tow"))
Player_AddAbility(player, BP_GetAbilityBlueprint("tiger_tank"))
Player_AddAbility(player, tiger_tank)

I cannot get it to work. Does anyone know the scar command to add vehicle ability's as so far I cannot seem to get one to work. "Fatal Scar Error".

Thanks :)
30 Jul 2014, 15:36 PM
#2
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Could you provide the full script?
30 Jul 2014, 18:32 PM
#3
avatar of lankyfatninja

Posts: 7

Not working



Working



For some reason that top one will not work.

Thanks again
31 Jul 2014, 10:04 AM
#4
avatar of lankyfatninja

Posts: 7

Would be great if someone can provide a working code for the tiger_ace ability. I know it is possible as I have seen other posts where someone has the tiger ace ability as extra.

Thanks again :)
3 Aug 2014, 09:33 AM
#5
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

First of all, you should be using <mapname>.scar instead of <mapname>_ID.scar.
<mapname>.scar is now included in the exported package and it's pretty much the same as <mapname>_ID.scar, except that you have to create this file by hand and add the Init by yourself.

Here's an example:

Code

function mymap_Init()
-- do stuff here
end

Scar_AddInit(mymap_Init)


And for the Tiger ace:
you need to apply the upgrade which is a requirement in the ticer ace ability:
Code
Player_CompleteUpgrade(player, BP_GetUpgradeBlueprint("tiger_tank_ace"))
Player_AddAbility(player, BP_GetAbilityBlueprint("tiger_tank_ace"))
3 Aug 2014, 15:30 PM
#6
avatar of lankyfatninja

Posts: 7

Thank you very much :) It is all working now.
19 Aug 2014, 12:19 PM
#7
avatar of Paladin_SA

Posts: 11

First of all, you should be using <mapname>.scar instead of <mapname>_ID.scar.
<mapname>.scar is now included in the exported package and it's pretty much the same as <mapname>_ID.scar, except that you have to create this file by hand and add the Init by yourself.

Here's an example:

Code

function mymap_Init()
-- do stuff here
end

Scar_AddInit(mymap_Init)


And for the Tiger ace:
you need to apply the upgrade which is a requirement in the ticer ace ability:
Code
Player_CompleteUpgrade(player, BP_GetUpgradeBlueprint("tiger_tank_ace"))
Player_AddAbility(player, BP_GetAbilityBlueprint("tiger_tank_ace"))



Well I tried to add in your code and it worked fine (still using mapname_id.scar) but it is assigned to all players , russian and us forces , is it possible to assign it just to Wehrmacht or OKW ? I tried
Player_CompleteUpgrade(germanplayer, BP_GetUpgradeBlueprint("tiger_tank_ace"))
Player_AddAbility(germanplayer, BP_GetAbilityBlueprint("tiger_tank_ace"))
and did get a fatal error.
Maybe you could help me with this problem
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

420 users are online: 1 member and 419 guests
Vermillion_Hawk
8 posts in the last 24h
44 posts in the last week
149 posts in the last month
Registered members: 44933
Welcome our newest member, Irmeger
Most online: 2043 users on 29 Oct 2023, 01:04 AM