Questions tagged [spawning]
143 questions
0
votes
0 answers
Creating Static Meshes in For Loop using C++ with unreal engine
this is the fix at top
use this to create a string that Static Mesh Object can accept as a unique identifier so the engine doesn't crash
FName name = *FString::Printf(TEXT("Sphere %i"), i);
I want to use a for Loop to create static meshes that I…

GSchian0
- 1
- 2
0
votes
1 answer
How do I get the respawn system working in Unity 3D?
I'm working on a 3D game in Unity where you die if you fall off the platforms. The aim is to respawn after you fall off a platform. At first it worked, but after I made a completely new movement system with a new player and a new camera it no longer…

AbstractStopcontact
- 13
- 4
0
votes
0 answers
How, when and where the Unreal Engine loads actor's assets when you spawn it by SpawnActor?
I'm trying to undestand when and in which thread Unreal loading assets of Actors. I have Spawner that call's SpawnActor for different actors (which have Meshes, Sounds, etc) in the game thread in runtime. As I understood Unreal loads that assets…

Robotex
- 1,064
- 6
- 17
- 41
0
votes
0 answers
Creating a Queue using Vector of Threads in C++
I would like to push elements into a queue using vector of threads, but am getting an error: no matching constructor for initialization of thread. Can you please help me to fix it.
#include
#include
using namespace std;
void…

Suresh Atukuri
- 13
- 3
0
votes
1 answer
bash: how to see real time output from spawned script
Consider the following scripts
#!/bin/bash
# fee.sh
echo "fee"
#!/bin/bash
# foo.sh
echo "foo"
./fee.sh &
Now execute the foo script.
$ ./foo.sh
foo
Only the output from foo.sh is visible.
The output from fee.sh, which is spawned within foo.sh,…

tcamuso
- 1
- 2
0
votes
1 answer
I want to spawn multiple cement block sprites. I already have the random x coordinates that I want them to spawn from
When ever I run my code I just see the one cement block sprite falling from the top of my pygame window. Thats exactly what I want except I want an infinite amount of cement blocks falling from the top of my pygame window. I already have it set to…

J.R. BEATS
- 93
- 6
0
votes
1 answer
Locust - how to delay collection of RPS data until all threads have started
Scenario
locust test with gradual spawn-rate, chart looks like a 45-degree angle.
I would like to know the RPS of the system while all threads are running.
The out-of-the-box RPS value from locust will include RPS values from the beginning of the…

Guy
- 666
- 1
- 10
- 34
0
votes
1 answer
Spawning blueprint does not spawn anything (UE4)
Here's a problem: my goal is to have a ball game with obstacles. I made two obstacles (cubes with triggers) and the spawner code does not spawn them - nothing at all. It does compile without errors, but just does not work. These blueprints are part…

MegapolisPlayer
- 75
- 1
- 9
0
votes
1 answer
How can I get enemies to spawn in Godot and be attracted/travel to a static point?
I am having trouble with path2Ds. So the enemies spawn at intervals as per the "your first game". However, what I want is for them to spawn and move towards/go to a stationary character or a set of coordinates from wherever they spawn.
I have tried…

Elliot Cullen
- 55
- 7
0
votes
1 answer
How to spawn a new Python child process in Node.js after the first one ends?
I use the output of a Python script in my node.js app.
However, I need to query it another time (and, possibly, several times).
I cannot do this because the Python process ends and cannot be restarted. I tried to reassign the variable, but it…

Aerodynamika
- 7,883
- 16
- 78
- 137
0
votes
1 answer
Why is my multiprocessing program spawning processes infinitely?
import time
from multiprocessing import Pool, RawArray, sharedctypes
from ctypes import c_int
def init_worker(X):
print(f"{X}")
def worker_func(i):
print(f"{X}")
time.sleep(i) # Some heavy computations
return
# We need this…

Shouvik Das
- 41
- 3
0
votes
3 answers
Photon Network Spawn Players At Different Points
I am trying to make an RTS game using Photon Networking For Unity. What I am trying to do is depending on the players in the specific room (2 in this example) all the players spawn at a different location. What I am having trouble is making a system…

CrazyGamer
- 9
- 1
- 7
0
votes
0 answers
Angular how to make mde popover spawn next to element instead of above or below
I'm working on an Angular project and was wondering if someone knows if it is possible to make a mde-popover spawn next to the hovering element instead of above or below it.
So far I haven't been able to change the spawn position this is what it…

imkeVr
- 442
- 1
- 7
- 30
0
votes
0 answers
Weird behaviour with FVector
I have a little code snippet in UE4 c++ that is supposed to give me a bunch of FVectors in a grid.
However, printing out the FVectors gives me (0,0,0) every single time
FVector deltaLoc;
float xGap = 150;
float yGap = 150;
for (int i = 0; i < rows;…

Shrey Ghildiyal
- 31
- 2
0
votes
1 answer
Why can't these gameobjects instantiate in Unity3D?
In the below code snippet I'm trying to instantiate gameobjects at different probability rates but I keep on getting the following error:
No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(Spawn06[])' was found.
The…

Random Binaries
- 3
- 2