For reference, this is my current script. If there's anything I can do to make it "better" please let me know!
Code: Select all
scn COASpawnRoomSCRIPT
ref placedObject
Begin OnActivate
if IsActionRef Player == 1
SpawnSwitchREF.PlayGroup Forward 0 ;this is supposed to play the activation anim for the switch, but it doesn't seem to work
set placedObject to SpawnMarkerREF.PlaceAtMe CrSuperMutant1GunADC 1
endif
if GetDeadCount CrSuperMutant1GunADC >= 10 ;this is supposed to clean up spawned enemies once it hits or exceeds 10. Currently stops you spawning more then 10.
placedObject.Disable
placedObject.MarkforDelete
endif
End
