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
304 | |||||
24 | |||||
5 | |||||
4 | |||||
2 | |||||
0 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.601215.737+16
- 3.34957.860+14
- 4.1109614.644+10
- 5.275108.718+26
- 6.305114.728+1
- 7.916405.693-2
- 8.722440.621+4
- 9.261137.656+2
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1235
Board Info
953 users are online:
953 guests
0 post in the last 24h
8 posts in the last week
34 posts in the last month
8 posts in the last week
34 posts in the last month
Registered members: 49107
Welcome our newest member, Falac851
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Falac851
Most online: 2043 users on 29 Oct 2023, 01:04 AM