User Tools

Site Tools


scripting:books_of_scripts:creature_spawning

Basic creature spawning script

Use this to spawn individual creatures, enemies, traders, or towns folk.

Clarification
UID numbers should be in the format - UID 184467####4187468629; (# replace with random number)
DefinitionType - The definition entered between the “” can be obtained from the decompiled names file.

NewThing AICreature;
Player 2;
UID 18446712344187468629;
DefinitionType "CREATURE_GRANNY";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsNavigator;
PositionX 50.436768;
PositionY 106.591797;
PositionZ 5.756703;
RHSetForwardX -0.052358;
RHSetForwardY -0.998623;
RHSetForwardZ 0.0;
RHSetUpX 0.000345;
RHSetUpY -0.000018;
RHSetUpZ 0.999994;
EndCTCPhysicsNavigator;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCContainerRewardHero;
EndCTCContainerRewardHero;
StartCTCEnemy;
FriendsWithEverythingFlag FALSE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
Health 200.0;
EnableCreatureAutoPlacing FALSE;
EndThing;
scripting/books_of_scripts/creature_spawning.txt · Last modified: 2006/01/15 02:36 (external edit)