Jump to content

I need help doing a GetFactionReaction check


cooldamien

Recommended Posts

I am new to modding so try to make a holotape that teleport user different locations. I have teleport function with visual effects work. What I try to do is make it so the holotape only work while the player is allied with the Institute.
Scriptname Dam_FacCheck extends ObjectReference Const


if (InstituteFaction.GetFactionReaction(GetPlayer()) == 1) ; 1 = Enemy
  Debug.Trace("Relay access has been revoked")
endIf


Faction Property InstituteFaction Auto Const

 

 

My second question is I like to teleport in 3 synth to the player or 1 small bit of ammo. Can I modify my code below that move player to do what I am asking.

DamMSG02.show()
utility.wait(0.001)
Game.GetPlayer().PlaceAtME(TeleportOutPlayerFXExplosion)
    utility.wait(0.7)
;telport player
Game.GetPlayer().MoveTo(Dam_Loc01) ; <-- Maybe Game.GetPlayer().PlaceAtME(snyth) how do ;I do this 
    utility.wait(1.0)
Game.GetPlayer().PlaceAtME(TeleportInPlayerFXExplosion) ;How do i get the effect to go ;around the synth or the ammo tellport
  ;wait for fx to play a bit
    utility.wait(0.4)

The last thing I wish for this mod is a cool down timer for using each function. I have no idea how to go about this.

 

 

I have attached my mod if you need to see how I am doing this.

 

Thank you for your help.

 

Damien

Link to comment
Share on other sites

 

I am new to modding so try to make a holotape that teleport user different locations. I have teleport function with visual effects work. What I try to do is make it so the holotape only work while the player is allied with the Institute.
Scriptname Dam_FacCheck extends ObjectReference Const


if (InstituteFaction.GetFactionReaction(GetPlayer()) == 1) ; 1 = Enemy
  Debug.Trace("Relay access has been revoked")
endIf


Faction Property InstituteFaction Auto Const

should be: Game.GetPlayer()

Link to comment
Share on other sites

  • Recently Browsing   0 members

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