scriptdev2/scriptdev2 — comment on commit 985d7693ec642c155ff879222c527516a8c11569
File:  line 0
By stfx:

I was thinking about this for some time now. The code for loading GOs which are already done is redundant in every script. How about adding a function where you pass the GO and do stuff you would do if the event is DONE? In this case it would be the following:

pGo->SetDisplayId(DISPLAYID_DESTROYED_FLOOR);
pGo->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_UNK_10 | GO_FLAG_NODESPAWN);
pGo->SetGoState(GO_STATE_ACTIVE);