Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Salut, am asa o intrebare, cum pot spawna obiecte random la un anumit interval de timp?

As vrea un exemplu.

2 answers to this question

Recommended Posts

  • 0
Posted

salut, la ongamemodeinit adaugi un timer   settimer("randomspawnobjects",60000,true);// la fiecare minut se va repeta functia

 

public randomspawnobjects()

{

 new obj = random(10);

createobject(obj ,x,y,z,rx,ry,rz);//
}

 

Cam atat pot da exemplu din putinele detalii pe care le ai dat

  • Like 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted
Acum 40 minute, Mister a spus:

salut, la ongamemodeinit adaugi un timer   settimer("randomspawnobjects",60000,true);// la fiecare minut se va repeta functia

 

public randomspawnobjects()

{

 new obj = random(10);

createobject(obj ,x,y,z,rx,ry,rz);//
}

 

Cam atat pot da exemplu din putinele detalii pe care le ai dat

Multumesc, deci vreau ca la inceputul unui event "Survival" sa inceapa un timer, si in acest timer sa se creeze obiecte care se misca, dar aceste obiecte sa fie random(obiectele sunt miscatoare).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.