Jump to content

Having a problem with OnTrigger and cell zone trigger


wulfy1

Recommended Posts

I have had this problem before and changing out the cell zone trigger fixed it but it's not fixing it this time. I have a destination set up for an escort to travel to. The player follows the escort and as or about the time that the escort reaches her location, the player triggers the cell zone trigger. The problem is that the zone will only trigger when the player is standing there and opens menu mode (inventory, game menu, talk, etc ...). It should just trigger as soon as the player collides with the zone ... Has anyone else seen this problem or have any insight?

 

The script follows:

 

SCN SASZoneTriggerSSACellJJBScript



begin onTrigger PlayerRef


	
     Setstage SavingSammiandAshani 151

DisablePlayerControls	

SASShaeleighRefA.RemoveScriptPackage

SASShaeleighRefA.EvaluatePackage

SASShaeleighRefA.StartConversation PlayerRef "SSaSHDDA"

	

disable


end

 

This is a revised version of the script.

 

It used to be called just on "Player" instead of "Playerref". It also used to have a doonce loop in it.

 

This all worked until I split out the races from the ESP which contains this script.

 

Any help would be appreciated.

 

Wulf

Link to comment
Share on other sites

Try this:

 

SCN SASZoneTriggerSSACellJJBScript

Short DoOnce

begin onTrigger

If GetIsReference Player == 1 && DoOnce == 0


               
     Setstage SavingSammiandAshani 151

       DisablePlayerControls   
       
       SASShaeleighRefA.RemoveScriptPackage
       
       SASShaeleighRefA.EvaluatePackage
       
       SASShaeleighRefA.StartConversation PlayerRef "SSaSHDDA"

       Set DoOnce to 1        

Endif

end

Link to comment
Share on other sites

Try this:

 

SCN SASZoneTriggerSSACellJJBScript

Short DoOnce

begin onTrigger

If GetIsReference Player == 1 && DoOnce == 0


               
     Setstage SavingSammiandAshani 151

       DisablePlayerControls   
       
       SASShaeleighRefA.RemoveScriptPackage
       
       SASShaeleighRefA.EvaluatePackage
       
       SASShaeleighRefA.StartConversation PlayerRef "SSaSHDDA"

       Set DoOnce to 1        

Endif

end

 

 

Thanks for the response but it wont fire at all now. I just don't get it. It was working a few days ago and I am using the same format I've used for dozens of these things. I'm going to try to replace it all again and see if that helps.

 

Thanks again,

Wulf

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...