Login

russian armor

Spawn units in building with .scar

1 Jul 2015, 18:12 PM
#1
avatar of Stafkeh
Patrion 14

Posts: 1006

Hello

I was wondering how I can spawn units in a building with scar?
1 Jul 2015, 18:16 PM
#2
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Squad_CreateAndSpawnToward

Cmd_Garrison

http://fortresseuropemod.com/scardoc

You will need to get the SGroup of the squad after creating it in order to use the second function.

You would also need to know the EGroup of the entity you want to garrison.
1 Jul 2015, 19:21 PM
#3
avatar of Stafkeh
Patrion 14

Posts: 1006

Thanks for the reply and the useful link :thumbsup:
1 Jul 2015, 19:31 PM
#4
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Sure thing! Let me know if you have any more questions about SCAR.
1 Jul 2015, 20:14 PM
#5
avatar of Stafkeh
Patrion 14

Posts: 1006

Sure thing! Let me know if you have any more questions about SCAR.


I will just post further questions here, I would spam the forums with them :p

Anyway, I was looking how I can make it happen when you capture a certain point, you win the game (Win Condition). Didn't find anything useful about this on the ScarDoc site. I'm probaly just looking over it...
1 Jul 2015, 20:45 PM
#6
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You will need to use the game event GE_StrategicPointChanged, for either a specific player using Rule_AddPlayerEvent or all players using Rule_AddGlobalEvent. The function you supply must be global (not local) and will likely have as arguments the player and the entity. Then, in the function, you can affect the game however you'd like for that event.

You can find other game events under Enums in the link I provided. However, the list has not been updated in some time.
1 Jul 2015, 22:09 PM
#7
avatar of Stafkeh
Patrion 14

Posts: 1006

So I'm trying this now step by step :p
I made the following:


The idea is to make a squad of cons attack when the two others are dead. But I have no idea how to put the two squads that are already defending in a SGroup.

How can you add a specific con to a squad if they have all the same SBP?

Later I'll check for the capture point and building spawn, first going for the basics :D
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

934 users are online: 934 guests
0 post in the last 24h
8 posts in the last week
37 posts in the last month
Registered members: 49104
Welcome our newest member, zhcnwps
Most online: 2043 users on 29 Oct 2023, 01:04 AM