Hello
I was wondering how I can spawn units in a building with scar?
Spawn units in building with .scar
1 Jul 2015, 18:12 PM
#1
4
Posts: 1006
1 Jul 2015, 18:16 PM
#2
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.
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
4
Posts: 1006
Thanks for the reply and the useful link
1 Jul 2015, 19:31 PM
#4
Posts: 756 | Subs: 8
Sure thing! Let me know if you have any more questions about SCAR.
1 Jul 2015, 20:14 PM
#5
4
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
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
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.
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
4
Posts: 1006
So I'm trying this now step by step
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
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
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
1 | |||||
33 | |||||
15 | |||||
4 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.939410.696+5
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1265
Board Info
936 users are online:
936 guests
1 post in the last 24h
11 posts in the last week
27 posts in the last month
11 posts in the last week
27 posts in the last month
Registered members: 50002
Welcome our newest member, rwintoday1
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, rwintoday1
Most online: 2043 users on 29 Oct 2023, 01:04 AM