forked from ScriptedEvents/ScriptedEvents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemoScript.cs
More file actions
47 lines (36 loc) · 1.35 KB
/
DemoScript.cs
File metadata and controls
47 lines (36 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
namespace ScriptedEvents.DemoScripts
{
/// <summary>
/// Demo script showing multiple different actions.
/// </summary>
public class DemoScript : IDemoScript
{
/// <inheritdoc/>
public string FileName => "DemoScript";
/// <inheritdoc/>
public string Contents => @"!-- DISABLE
# This is an example of a script that you can create to automate random events and/or admin events in your server.
# Wait until the round starts.
WAITUNTIL {ROUNDSTARTED}
# Wait 5 seconds.
WAITSEC 5
# Open and lock all doors for 5secs
DOOR OPEN * 5
DOOR LOCK * 5
# CASSIE Announcement (note that there is no delay here between this instruction and the last two)
CASSIE All doors have been locked opened
# Wait for announcement to finish before making new one
WAITUNTIL {!CASSIESPEAKING}
# CASSIE Announcement (cassie can support subtitles, if you add the | seperator to seperate from announcement and subtitle).
CASSIE MtfUnit Epsilon 11 Designated Alpha 1 HasEntered|Mobile Task Force Unit Epsilon 11 Designated Alpha-01 has entered the facility.
# Wait 10 seconds.
WAITSEC 10
# Destroy all doors
DOOR DESTROY *
# Lights off for 10 seconds.
LIGHTSOFF 10
# Run a command. It needs / before it if it's a RA command, or . before it if its a console command.
COMMAND /cleanup ragdolls
";
}
}