Timer segítségével, létrehozol egy timert majd megcsinálod, hogy az az object elmozuljon.. ennyi
CreateDynamicObject(991, 2592.8999023438, 2759.8000488281, 10.10000038147, 270, 0, 270);//LentiCreateDynamicObject(991, 2592.6999511719, 2759.6000976563, 23.700000762939, 270, 0, 270);//Fenti
forward felfele();
forward lefele();
public OnGameModeInit(){ print(\"Lift timer elindult...\"); SetTimer(\"felfele\", 300000, false);}
public felfele(){ //IDE FELFELE A LIFTET SetTimer(\"lefele\", 100000, false);}
public lefele(){ //IDE LEFELE A LIFTET}
public felfele(){CreateDynamicObject(991, 2592.6999511719, 2759.6000976563, 23.700000762939, 270, 0, 270);//Fenti SetTimer(\"lefele\", 100000, false);}public lefele(){CreateDynamicObject(991, 2592.8999023438, 2759.8000488281, 10.10000038147, 270, 0, 270);//Lenti SetTimer(\"felfele\", 100000, false);}
forward FelLe();new fenntvan, mozgoobject;
SetTimer(\"FelLe\", 20000, 1);mozgoobject = CreateDynamicObject(991, 2592.8999023438, 2759.8000488281, 10.10000038147, 270, 0, 270);
public FelLe() { if(fenntvan == 0) { MoveDynamicObject(mozgoobject, 2592.6999511719, 2759.6000976563, 23.700000762939, 1.0, 23.700000762939, 270, 0); fenntvan++; } else if(fenntvan == 1) { MoveDynamicObject(mozgoobject, 2592.8999023438, 2759.8000488281, 10.10000038147, 1.0, 270, 0, 270); fenntvan--; } return 1;}
public FelLe() { if(fenntvan == 0) { MoveDynamicObject(mozgoobject, 2592.6999511719, 2759.6000976563, 23.700000762939, 1.0, 270, 0, 270); fenntvan++; } else if(fenntvan == 1) { MoveDynamicObject(mozgoobject, 2592.8999023438, 2759.8000488281, 10.10000038147, 1.0, 270, 0, 270); fenntvan--; } return 1;}