A
A
Artem Zuev2020-12-27 13:25:55
C++ / C#
Artem Zuev, 2020-12-27 13:25:55

How to implement the appearance of the enemy at one of the given points?

In my game, there is an enemy that should spawn every n seconds on one of three given points (the points are set manually and their coordinates do not change).
How to make the appearance of enemies at these points as random as possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Black Basher, 2021-01-24
@BlackBasher

If the question is how to make randomness, then create an array Vector3[], when assigning a position, use Random.Range (0, array.Length)

E
eugene73, 2017-02-24
@vovkaooo1

timer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question