Moved trigger creation to onstart script

This commit is contained in:
Sachith Hasaranga Seneviratne 2014-08-04 22:43:56 +05:30
parent 66aa65e827
commit be0f09a828
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,6 @@
void onStart()
{
Vec3 created = Vec3(0.0, 0.0, 0.0);
printVec3(created);
createTrigger("added_script", created , 30.0); //name,x,y,z,trigger distance
}

View File

@ -15,10 +15,8 @@ void tutorial_bananas()
{
displayMessage("Bananas! Bananas! Everywhere!");
squashKart(0,35.0); //id of kart,time to squash
//teleportKart(0, 0, 0 ,0); //id of kart, x,y,z
//setVelocity(0, 5, 50 , 8); //id of kart, velocity //components x,y,z
jumpKartTo(0, 0, 0); //id of kart, target x,y
createTrigger("added_script",0,0,0,30.0); //name,x,y,z,trigger distance
//teleportKart(0, Vec3(0,0,0)); //id of kart, x,y,z
//setVelocity(0, Vec3(5, 50 , 8)); //id of kart, velocity //components x,y,z
}