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...

Trap Not Activating


JulianSull
 Share

Recommended Posts

I'm using the ARTrapChannelSpikes01 for my level. I modified the script slightly.


begin onActivate

		MessageBox "It got activated"

	if activated == 0 


		; set up the damage values

		set fTrapDamage to 20

		set fTrapPushBack to 1200

		set fLevelledDamage to 1.5

		set fTrapMinVelocity to 20

		set bTrapContinuous to 0


		set activated to 2


	else

		set activated to 0

	endif


end

When I use [ChannelSpikesRefName].Activate, no messagebox shows up. It's like the Activate command is completely ignore, yet I've tested it and the code does get to that point. Why isn't it activating?

Link to comment
Share on other sites

I don't know for sure, but I've never seen a message box above the if statement, maybe move it below that? :question:

Heh I just figured it out. Activate has more to it than just Thing.Activate. I changed it to Thing.Activate Player 1 meaning "Activate this thing as if the player is activating it and make sure you run the OnActivate block and not its normal activation"

Stupid fine print

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...