Shargast_PRC8/_module/Chapter 2/nss/gz_woodc_treedth.nss

12 lines
332 B
Plaintext
Raw Normal View History

2024-08-03 14:13:18 -04:00
void RegrowTree(location lLoc)
{
CreateObject(OBJECT_TYPE_PLACEABLE,"gz_obj_tree_mark",lLoc,TRUE);
}
void main()
{
location lLoc = GetLocation(OBJECT_SELF);
AssignCommand(GetNearestObjectByTag(GetTag(OBJECT_SELF)),DelayCommand(150.0f,RegrowTree(lLoc)));
SetLocalInt(GetLastKiller(),"T1_NPC_KILLEDLASTREE",TRUE);
}