|
#1
|
|||
|
|||
Spawn Point Script 0
What is Spawn Point Script 0?
What is it used for? How do you use it? |
#2
|
|||
|
|||
Quote:
Basically this is to spawn AI (planes/tanks etc.) at different times from mission start. If you don't check the SpawnPoint ScriptOn that group of AI (regardless if you have them scripted in or not) will all spawn on mission startup. So you make a trigger with TTime (for time delay - as an example) and an action for that trigger (spawn air group - to spawn AI planes) and from that action you choose the airgroup (similar to setting a target with the FMB - the target recticle will show up and you can hover over the spawn point for w/e airgroup you want to spawn) and then you put the scripts in the scripts window. In that window you can also left click and "compile" to check to see your script is ok. Here's a tidbit from Kodiac that taught me how it works: Quote:
|
#3
|
|||
|
|||
Insert script
How can I insert scripts in scripts window?
|
#4
|
|||
|
|||
Copy the script with CTRL+C, click in the script window and paste it with CTRL+V.
You can also create a txt-file, paste the text, then save the txt under the same name as the mission with a .cs. For example if you have a mission MyMission.mis then you must name the Script file MyMission.cs. The advantage of this method is that you can use better editors like Notepad++ or if you like MS Visual C# Express. |
#5
|
|||
|
|||
Insert Script
Thanks very much Kodiak for your help. Now I successfully launched an example mission from your Mission Editor “Scripting for Dummies”. Got the message: “Ziel erreicht” as four Emils did their job quite well.
|
|
|