Jump to content

SL Trigger script help?


Recommended Posts

Posted

I wrote this little SL Triggers script (which to my eyes, looks more like a simple hash)  to toggle god mode for SL scenes, (triggers on a begin event to enter god mode and on end event to step back out), but it doesn't seem to fire.

 

{
	"cmd" : 
	[
        ["console", "$self", "ToggleGodMode"]
	]
}

 

And yes, I tried using the abbreviated form (both TGM and tgm, fwiw)  too.

 

Anyone know what I did wrong?

 

 

Posted

Don't know about SLT, never used it, but first thing that comes to mind is, can you actually do this in the in-game console?

player.tgm

 

If its like tcl then it won't work if there's a reference selected.

 

So what I'm saying is, can you remove that $self bit from it? Make it "tgm" rather than (presumably) "player.tgm"?

Posted

no I don't think you can. However, you can run tgm by itself from console, which I *thought was what I was doing.

 

Oh... so the "self" part of that ?array? is screwing things up. I see now. Or think I do anyway

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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