Unknown
From DarkAI
AI
CREATE SOUND
This command creates a sound at
the specified position that can be detected by nearby entities.
Sounds are not created automatically so they must all be created
using this command. You can choose when and where sounds, such as gun
shots, are created and do not have to represent any real event. When
in automatic mode, entities will respond to sounds depending on their
stance, more aggressive stances will move to the point of the sound
to look for targets.
The type of sound determines how
important the entity will rate a particular sound when heard, for
example footsteps, gunshots or explosions. Higher type values are
regarded as more important and will be investigated before lower
values.
The radius is how large the sound is, if the sound
radius plus the entity hearing range is greater than the distance
between the two, the sound can be heard by the entity.
The
container parameter allows you to limit the sound to a particular
container, so that only entities from that container will hear the
sound. The default is -1 for all containers.
Syntax
AI Create Sound Position X#, Position Z#, Type, Radius#
AI
Create Sound Position X#, Position Z#, Type, Radius#, Container
Number
Parameters
Position X#, The X
position where you want to sound to be.
Position Z#, The Z
position where you want to sound to be.
Type, The type of
sound as a positive integer.
Radius#, The radius of the
sound.
Container Number, (optional)
The id of a container to limit the sound to.
Return
n/a