Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Gas Traps


JulianSull
 Share

Recommended Posts

I can't get these things to work for the life of me. I'm using the ARGasTrapGrate01 and this is the script that I used for it:



scn aaaBossFightHunterGasTrapScript


; spurt gas on activation


float timer

short next

short activated

ref mySelf

ref myParent


float fTrapDamage

float fTrapPushBack

float fTrapMinVelocity

float fLevelledDamage

short bTrapContinuous


begin onActivate



		set myParent to getParentRef

		set mySelf to getSelf

		set activated to 1





		; set up the damage values

		set fTrapDamage to (Player.GetActorValue Health) / 15

		set fLevelledDamage to 0

		set fTrapPushBack to 0

		set fTrapMinVelocity to 0

		set bTrapContinuous to 1


		set timer to 24

		set next to 1


		playgroup forward 1



end


begin gameMode


	;daisy-chain

	if next == 1 && timer <= 23

		set mySelf to getSelf

		set myParent to getParentRef

		myParent.activate mySelf 1

		set next to 0

	endif


	;reset for next time

	if timer <= 0 && activated == 1

		set fTrapDamage to 0

		set activated to 0

	endif


	set timer to timer - getSecondsPassed


end


I definitely activate them and they are definitely enabled. What am I missing? That above script is almost identical to the original oblivion script for this trap.

Link to comment
Share on other sites

I have a push button that activates them:



scn aaaBossFightHunterGasRoomScript


begin OnActivate Player


	aaaBossFightHunterRoom4ActivationX.Enable

	aaaBossFightHunterGasTrap1REF.Activate

	aaaBossFightHunterGasTrap2REF.Activate

	aaaBossFightHunterGasTrap3REF.Activate

	aaaBossFightHunterGasTrap4REF.Activate

	TriggerHitShader 10

	Disable


end


The gas traps are not doing any damage and there's no indication of it working.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...