Jump to content

Need help scripting - invalid reference


BeFtRoN

Recommended Posts

I'm trying to convert one of my fo3 mods to nv, but the scripting must be different... or i've forgotten how to do things

trying to start a script... well, look:

 

scn AABEFPistolEffectScript

 

REF Target

 

BEGIN ScriptEffectStart

 

If GetDead == 0

Set Target to GetSelf

Target.StopCombat Player

Player.StopCombatAlarmOnActor

Target.ClearActorsFactionsPlayerEnemyFlag

 

endif

 

END

 

BEGIN ScriptEffectFinish... blah blah blah

 

anyway, when i try to compile, it tells me that "target" is an invalid reference.. why? it worked on fallout 3

Link to comment
Share on other sites

I'm guessing it's because "target" is already used as a reference value by the game.

For example dialogue options can run conditions on "subject", "target", "reference", etc

 

ie, I got the same error when I tried to set a "short SetStage" variable on a script.

Edited by FutureVisions
Link to comment
Share on other sites

  • Recently Browsing   0 members

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