Jump to content

I need some serious help


Mooper 99

Recommended Posts

I need it so when I equip a special pair of glasses, I can control an NPC, but I equip them and the keys won't work...

 

scn aaaP2

ref me
float fQuestDelayTime
ref targetref
short started

Begin onequip
; when quest starts
if started == 0
	set fQuestDelayTime to 0.01
endif
set me to aaaControl
	;save settings for position 5 6 7 on 8 9 0 and return on backspace---------------------
		if IsKeyPressed 70 == 1 ;F
			me.Rotate z -400
		endif
		if IsKeyPressed 71 == 1 ;G
			me.Rotate z 400
		endif
		if IsKeyPressed 81 == 1 ; Q
			me.PlayGroup JumpStart, 1
		endif
		if IsKeyPressed 82 == 1 ;R
			me.setforcesneak 0
		endif
		if IsKeyPressed 69 == 1 ;E key
			me.setForceSneak 1
		endif
		if IsKeyPressed 220 == 1 ;\ key
			me.moveto player
			con_save FIX-SAVE
			con_loadgame FIX-SAVE
		endif
		if IsKeyPressed 90 == 1 ;Z
			me.SetAlert 1
		endif
		if IsKeyPressed 88 == 1 ; X
			me.SetAlert 0
		endif
		if IsKeyPressed 67 == 1 ;C
			me.setalert 1
			me.PlayGroup AttackLeft, 1
			set targetref to me.GetCombatTarget
				targetref.ModAV Health -3
		endif
		if IsKeyPressed 66 == 1 ;B
			me.setalert 1
			me.PlayGroup AttackPower, 1
				set targetref to me.GetCombatTarget
				targetref.ModAV Health -5
		endif
;movement animation control for the CREATURE-------------------------------------------
				elseif IsKeyPressed 86 == 1 ; V
					me.PlayGroup AttackRight, 1
					set targetref to me.GetCombatTarget
						targetref.ModAV Health -3
				endif
				if IsKeyPressed 65 == 1 ;A
					me.PlayGroup left, 1
				elseif IsKeyPressed 68 == 1 ;D
					me.PlayGroup right, 1			
				elseif IsKeyPressed 87 ; W
					me.PlayGroup fastforward, 1
				elseif IsKeyPressed 83 == 1 ;S
					me.PlayGroup backward, 1
				else
						if me.IsAnimPlaying == 1
							me.PlayGroup idle, 1
						else
							me.pickidle
						endif
				elseif IsKeyPressed 90 == 1

				endif
end

Edited by Mooper 99
Link to comment
Share on other sites

  • Recently Browsing   0 members

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