killing an actor with script causes crash?

Post » Wed Jun 27, 2012 11:58 am

im working on this script here
scn StaticSpaceOnMoonTokenScriptFloat deathTimerRef rContainerBegin GameModeset rContainer to getContainerif rContainer.isActor  if rContainer.getEquipped StaticTSCSpaceSuit == 0 && rContainer.getItemCount StaticSpaceOnMoonInsideToken == 0   if rContainer == playerRef    ShowMessage StaticSpaceNoSuitMessage   endIf   set deathTimer to deathTimer + getSecondsPassed   if deathTimer >= 2       if rContainer.getItemCount StaticSpaceOnMoonToken > 1         rContainer.removeItem StaticSpaceOnMoonToken 1 1    endIf             if rContainer.isActor         rContainer.killActor         removeme    endIf           endIf  else   if deathTimer > 0 && rContainer.getDead == 0    set deathTimer to 0   endIf  endIfendIfEnd

when ever the actor is killed my game closes
any one have any ideas?
User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm

Return to Fallout: New Vegas