User Tools

Site Tools


nfextra_modules_randomplacement

This is an old revision of the document!


Random Placement

Random Placement Composition

Sync this module to a ““Random Placement Main”” module and one or more objects that should be moved together. Position and rotations are relative to this composition module

Random Placement Main

This module is supposed to be linked with a “Random Placement Position” Module and one or multiple objects/placement composition modules. It will select a random placement position and move the synced object there. It will do so for each synced object, but won't spawn something on a position twice. If there are more objects than placement positions, some will not be moved.

Attributes:

  • Priority = Sets the priority of this placement module. Lower priority modules run first. Might be important if your placement conditions depend on other randomly placed objects.
  • Init Server = Runs on server when an object is moved. “_this” refers to the moved object.
  • Init Global = Runs global when an object is moved. “_this” refers to the moved object

module description: This module is supposed to be linked with a “Random Placement Position” Module and one or multiple objects/placement composition modules. It will select a random placement position and move the synced object there. It will do so for each synced object, but won't spawn something on a position twice. If there are more objects than placement positions, some will not be moved.

Random Placement Position

This module is supposed to be linked with a ““Random Placement Main”” Module. If the condition returns true, the position of the module is a possible placement position for an object.

Attributes:

  • Condition = This position is only considered if the condition returns true. Evaluated on server only!
nfextra_modules_randomplacement.1736128989.txt.gz · Last modified: by tiwaz