-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSAMPLE.SF
44 lines (34 loc) · 793 Bytes
/
SAMPLE.SF
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
// For primitive variables :
Number variableNumber(4.8);
Text textVar("abcdef");
Bool booleanVar(false);
// For object of class variables :
ClassName varName( functiontogetthisvariable() );
Character npc(GetCharacter());
Position myPos(2, 1, 3);
Character characterNull; // < this variable is null
State Base() {
Conditions
{
// Your code here (executed every frames)
};
Actions
{
// Your code here (execute one frame)
};
}
Base();
Function myFunctionName (text param1, number param2) returns Bool // !! <-- "Bool" is the type returned, so if you want to return a number put "Number"
{
if ( true )
{
return true;
}
else
{
return false;
}
}
// Players
Global Character cPlayer1;
Global Character cPlayer2;