![]() |
Help - SpawnScript/Triggers
Hi,
I'm not a "script expert". I'm trying to learn basics and do simple things... First, wanted to create a mission for dogfight training in our squadron. I need delay spawn for a group of enemies and after them get destroyed they respawn again, in a infinite loop. Tried using Triggers and Actions, but TGroupDestroy doesn't work. Delay is OK. So moved to script solution... I read a lot of texts about script, but again, only delay spawn worked... Could someone post a simple script or solution for that? Its simple: spawn group after XX seconds and respawn if destroyed. Thanks very much! =AN=Bluesman |
1 Attachment(s)
A training mission i create for my squad.
In the script i don't use triggers. Only actions to create new Airgroups. I store enemy planes in a list, and remove a plane if it is destroyed or killed (killed is earlier for example you kill the pilot, the plane is killed, destroyed is after crashing to ground). If the list count is on a low number i create a new Airgroup. Code:
using System; |
Ty very much!
I'll test your mission tonight! S! =AN=Bluesman |
Hi Kodiak
First thanks for this scrip. Second, i have a cuestion. If i need to create 2 group at same time, how can i edit this scrip? Exmple: 4 bomber and 2 scolt. |
for example:
Code:
using System; First is Bomber, second is fighter. then i modify the Code:
if (enemyAircraftsInGame.Count <= MinNumberEnemyPlanesAlive) |
thanks
|
Shooting Range
Hello,
I downloaded shootingrange.zip and extracted the files into the 1C SoftClub folder. I can see the spawn point on the map in FMB. The Actions and Script have loaded in Scipt. But when I run the mission I do not see the spawn point or am able to fly the blue plane I selected (e3b). Is there something else I need to do? thx |
You must host in multiplayer as a server. Then start the battle, choose the blue side (click the german/italian flag), then you see the spawnplace, select it ...
|
All times are GMT. The time now is 01:48 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2007 1C Company. All rights reserved.