REDNODE / DOCS

World test

Example apps / world-test / v0.1.1

Node mod

Spawn an entity in front of V with a mesh component built by api.$new, move it in a circle as fast as the game allows, and remove it.

Simulated game starting
Mod log

    Nothing is drawn: the entity exists only in the simulation, but the events and the move rates behave the same way.

    How it works

    api.$new builds a game object, here a mesh component with its mesh set by a depot path. world.spawn places an entity with it.

    Calls waiting when a game frame starts run in that frame, so ten moves at once take one frame, not ten.

    What it uses

    world.spawn world.move world.remove world.on api.$new world.available

    Use it

    Copy the files into red4ext/plugins/REDnode/apps/world-test/ in the game folder, or start your own package from them: change id and name in the manifest first. The whole folder is on GitHub.