basic scripting...for the newb

Post » Thu Jun 21, 2012 3:11 am

anyone have any ideas on the valve problem? id like to be able to use them as levers dont really fit well with my setting. (script is currently working fine with a lever but still cant get valves to be clickable, which includes newly placed valves with no new scripts attached)
Make an Activator form pointed to the same model, then you should be able to tack on an OnActivate() event.
User avatar
Daramis McGee
 
Posts: 3378
Joined: Mon Sep 03, 2007 10:47 am

Post » Thu Jun 21, 2012 2:39 am

"bWaterOn = !bWaterOn"

I get that this is setting the variable to "NOT"bwateron (true or false)

But does Papyrus use more esoteric boolean stuff?

Like Xor, NAND etc?

Well A XOR B is just (! ( A&&B ) && (A || B )) while A NAND B is just (!(A && B )) - you don't actually need explicit Nand and Xor
User avatar
Abel Vazquez
 
Posts: 3334
Joined: Tue Aug 14, 2007 12:25 am

Previous

Return to V - Skyrim