======  OnSpawnedEntity hook callback function ======
This callback is called after the server spawns an entity. This is an information-only callback, the entity is already spawned by the time it is called.
If the entity spawned is a monster, the [[API:Plugin:OnSpawnedMonster|OnSpawnedMonster]]() hook is called before this hook.

===== Function signature =====
<code lua>
function OnSpawnedEntity(World, Entity)
</code>
Parameters:
| World | [[API:cWorld|cWorld]] | The world in which the entity has spawned |
| Entity | [[API:cEntity|cEntity]] | The entity that has spawned |

===== Return values =====
If the function returns false or no value, the next plugin's callback is called. If the function returns true, no other callback is called for this event.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_SPAWNED_ENTITY]]
<code lua>
PluginManager = cPluginManager:GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_SPAWNED_ENTITY)
</code>