Protecton disable

Post » Fri May 27, 2011 7:27 pm

Hi!

I need some script help (don't know what's wrong):

Currently I have a terminal which allows one to disable all protectrons in the current cell, which also checks if they aren't already unconscious (that works). Here is the script:

Disable:
AAMarksOfficeBaseProtectron.setUnconscious 1AAMarksOfficeProtectron1.setUnconscious 1AAMarksOfficeProtectron2.setUnconscious 1AAMarksOfficeStairProtectron.setUnconscious 1AAMarksOfficeWelcomeBot2.setUnconscious 1AAMarksOfficeWelcomeBot1.setUnconscious 1AAMarksOfficeBaseProtectron.stopCombatAAMarksOfficeProtectron1.stopCombatAAMarksOfficeProtectron2.stopCombatAAMarksOfficeStairProtectron.stopCombatAAMarksOfficeWelcomeBot2.stopCombatAAMarksOfficeWelcomeBot1.stopCombat


Enable:
AAMarksOfficeBaseProtectron.setUnconscious 0AAMarksOfficeProtectron1.setUnconscious 0AAMarksOfficeProtectron2.setUnconscious 0AAMarksOfficeStairProtectron.setUnconscious 0AAMarksOfficeWelcomeBot2.setUnconscious 0AAMarksOfficeWelcomeBot1.setUnconscious 0


The problem is that none of the Protectrons get disabled (they're all persistent references). Does anybody know the problem?
User avatar
George PUluse
 
Posts: 3486
Joined: Fri Sep 28, 2007 11:20 pm

Post » Fri May 27, 2011 11:55 pm

Bumpiediebump.
User avatar
R.I.p MOmmy
 
Posts: 3463
Joined: Wed Sep 06, 2006 8:40 pm

Post » Sat May 28, 2011 1:13 am

Are these the REF names or the object IDs that you are doing this to? These operations require a REF name.

To disable a protectron like that you would look at it in the render window, and double click it, and in the box that comes up there is a text box at the top. That is for your REF name. You would put for example MyProtectronREF in that text box. Then, in your script, you call functions against that name (MyProtectronREF).
User avatar
An Lor
 
Posts: 3439
Joined: Sun Feb 18, 2007 8:46 pm

Post » Sat May 28, 2011 7:10 am

Are these the REF names or the object IDs that you are doing this to? These operations require a REF name.

To disable a protectron like that you would look at it in the render window, and double click it, and in the box that comes up there is a text box at the top. That is for your REF name. You would put for example MyProtectronREF in that text box. Then, in your script, you call functions against that name (MyProtectronREF).

Yep, those are the ref names. They're all unique.
User avatar
Jesus Sanchez
 
Posts: 3455
Joined: Sun Oct 21, 2007 11:15 am

Post » Sat May 28, 2011 12:35 am

Yep, those are the ref names. They're all unique.


first step I'd do - - try doing a scripted kill on them instead - - just to make sure your script is even trying to touch them.
User avatar
Cagla Cali
 
Posts: 3431
Joined: Tue Apr 10, 2007 8:36 am

Post » Sat May 28, 2011 5:57 am

first step I'd do - - try doing a scripted kill on them instead - - just to make sure your script is even trying to touch them.

Tried both Kill and KillActor, no effect :(.

Here's a screen: http://img525.imageshack.us/img525/3986/geckterminalprotectron.png
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Sat May 28, 2011 6:05 am

Tried both Kill and KillActor, no effect :(.

Here's a screen: http://img525.imageshack.us/img525/3986/geckterminalprotectron.png


I have not worked with terminals very much. But see, if your kill isn't working, it means the code isn't getting run against them. You'd have to work that angle of it.
User avatar
Samantha Mitchell
 
Posts: 3459
Joined: Mon Nov 13, 2006 8:33 pm

Post » Sat May 28, 2011 8:47 am

I have not worked with terminals very much. But see, if your kill isn't working, it means the code isn't getting run against them. You'd have to work that angle of it.

Any suggestions?
User avatar
Sheeva
 
Posts: 3353
Joined: Sat Nov 11, 2006 2:46 am


Return to Fallout: New Vegas