Page 1 of 1

KillObject Issues? [Solved]

Posted: Sat Feb 13, 2010 12:42 pm
by Master_Ben
So I've set up a few turrets to be killed when the game starts and respawn when the player enters a region, but the turrets aren't killed, and for some reason it isn't working. Here's the important part, in scriptpostload:
Hidden/Spoiler:
KillObject("tur_bldg_hoth_dishturret")
KillObject("tur_bldg_hoth_dishturret1")
KillObject("tur_bldg_hoth_dishturret2")
KillObject("tur_bldg_hoth_dishturret3")
KillObject("tur_bldg_hoth_dishturret4")
KillObject("tur_bldg_hoth_dishturret5")



ActivateRegion("cpcapture")
testfunction = OnEnterRegion(
function(region, player)
if IsCharacterHuman(player, 1) then
RespawnObject("tur_bldg_hoth_dishturret")
RespawnObject("tur_bldg_hoth_dishturret1")
RespawnObject("tur_bldg_hoth_dishturret2")
RespawnObject("tur_bldg_hoth_dishturret3")
RespawnObject("tur_bldg_hoth_dishturret4")
RespawnObject("tur_bldg_hoth_dishturret5")
end
end,
"cpcapture"
)
EDIT: It's working now, although I don't know why since I didn't change anything. Topic can be locked.

Re: KillObject Issues?

Posted: Sat Feb 13, 2010 5:09 pm
by [RDH]Zerted
Maybe you had forgotten to munge?

*Locked*