Jump to content

My simple OnTriggerEnter script not working


Polyfemus

Recommended Posts

My script is attached to a cubic activator. It's supposed to be triggered when the player enters the bound box but for whatever reason it doesn't seem to work. Which is to say that it successfully compiles but in-game doesn't seem to register. Here's the code:

scn aCQ1DE1SCRIPT

begin ontriggerenter player

if (aCQ1Var.de5 == 0)
	set aCQ1Var.de5 to 1
endif

end



As I've said the code compiles but it fails to react to the player in-game when I'm inside the cubic activator. Just to give a little context the variable "de5" is attached to a quest called "aCQ1Var". This variable is initiatlized at 0. That should be all the relevent info. But here's some random other information that may or may not be the problem:

 

- My cubic activator is set as a persistent reference.

- My cubic activator has a reference name.

 

I think that's all the info I've got but if anyone wants more background surrounding my scripts I'll be more than happy to provide the contexts if that helps in anyway.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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