Added current tutorial scripts to new structure
This commit is contained in:
parent
f86b5f91af
commit
94e6138298
@ -1,11 +0,0 @@
|
||||
void onTrigger()
|
||||
{
|
||||
displayMessage("This trigger was added by another script");
|
||||
jumpKartTo( 0, 67.90, 99.49 );
|
||||
Vec3 a;
|
||||
Vec3 b;
|
||||
b=a;
|
||||
Vec3 c = Vec3();
|
||||
Vec3 d = Vec3(2,3,4);
|
||||
printVec3(d);
|
||||
}
|
4
data/scripts/tutorial/start.as
Normal file
4
data/scripts/tutorial/start.as
Normal file
@ -0,0 +1,4 @@
|
||||
void onStart()
|
||||
{
|
||||
|
||||
}
|
@ -1,4 +1,17 @@
|
||||
void onTrigger()
|
||||
void added_script()
|
||||
{
|
||||
displayMessage("This trigger was added by another script");
|
||||
jumpKartTo( 0, 67.90, 99.49 );
|
||||
Vec3 a;
|
||||
Vec3 b;
|
||||
b=a;
|
||||
Vec3 c = Vec3();
|
||||
Vec3 d = Vec3(2,3,4);
|
||||
printVec3(d);
|
||||
}
|
||||
|
||||
|
||||
void tutorial_bananas()
|
||||
{
|
||||
displayMessage("Bananas! Bananas! Everywhere!");
|
||||
squashKart(0,35.0); //id of kart,time to squash
|
||||
@ -8,3 +21,4 @@ void onTrigger()
|
||||
createTrigger("added_script",0,0,0,30.0); //name,x,y,z,trigger distance
|
||||
|
||||
}
|
||||
|
4
data/scripts/tutorial/update.as
Normal file
4
data/scripts/tutorial/update.as
Normal file
@ -0,0 +1,4 @@
|
||||
void onUpdate()
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user