Jump to content

Recommended Posts

Posted (edited)

Okay, I think I've got this sorted now.

 

So I'm currently trying to get a visual effect working on my Decontamination booth and running into trouble. Most of the good visual effects I've seen in game are done with the MovableStatic type.

 

I've been able to spawn a MovableStatic using 'Form' for the variable type in Papyrus and the placeatme command. Once I've created it though I can't seem to manipulate it any further. I've tried calling both disable and delete methods on the MovableStatic and nothing seems to work. The script compiles successfully in Caprica but then once I load Fallout the MovableStatic does get created, it just doesn't also disappear the way it should.

 

Any suggestions as to how I can handle the MovableStatic? Even just letting me know about another script that works with this object type would be handy, I've had a look but haven't spotted one yet.

 

Here's the latest version of my unsuccessful script for reference in case it helps.

 

 

  Reveal hidden contents

 

Edited by PoliteRaider
Posted

Uhhh... why are you coding the script like that? Use Champollion to decode the PEX scripts instead of Caprica and rewrite your script in Papyrus code instead of trying to write it in Papyrus Assembly.

Posted (edited)
  On 3/29/2016 at 2:53 AM, Reneer said:

Uhhh... why are you coding the script like that? Use Champollion to decode the PEX scripts instead of Caprica and rewrite your script in Papyrus code instead of trying to write it in Papyrus Assembly.

 

*facepalms* Trust me to be doing things backwards. That's how I've been doing all my coding.

 

I'll give it a try with Champollion and not make it quite so difficult on myself.

 

Edit: I downloaded Champollion a while back, but never took the time to actually learn to use it.

Edited by PoliteRaider
Posted (edited)

Okay, so I've converted it to .psc and put that in the first post spoilerblock.

 

I'll see if I can get it working this way instead.

 

Edit: Oh, also the code's a little broken from being passed around between compilers so many times, like a piece of text that's gone through google translate in a lot of different languages. I'm aware of that and fixing it now.

Edited by PoliteRaider
Posted

Thanks, I think I've figured out what was causing the problem. Using .psc does make it easier to figure some of this out, although I've kinda gotten used to working in .pas.

 

Thankyou Reneer.

 

I think the problem was that by casting the MSST as a form, rather than an object reference it lacked both the delete and the disable method. It was an inheritance problem.

  • Recently Browsing   0 members

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