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

Disable script not working correctly


DsoS
 Share

Recommended Posts

so I'm trying to disable a rock when it falls and hit a trigger zone with the script shown below. However, when the rock falls and hits the trigger zone it does NOT disable. Why would it not disable?

FallingRock01 is the REF ID and set to persistent.


short triggered


begin onTrigger FallingRock01


	if triggered == 0

		FallingRock01.disable

		set triggered to 1

	endif


end

Any idea why the rock isn't being disabled when it hits the triggerzone (thats 100 units below the stupid thing)??

Link to comment
Share on other sites

so I'm trying to disable a rock when it falls and hit a trigger zone with the script shown below. However, when the rock falls and hits the trigger zone it does NOT disable. Why would it not disable?

FallingRock01 is the REF ID and set to persistent.


short triggered


begin onTrigger FallingRock01


	if triggered == 0

		FallingRock01.disable

		set triggered to 1

	endif


end

Any idea why the rock isn't being disabled when it hits the triggerzone (thats 100 units below the stupid thing)??

Quite a silly question, is the Triggerzone attached the script? :P

Link to comment
Share on other sites

Is the 'rock' part of a trap? If so, it may become a new object when its triggered.

Put a button in that 'forces' the disable and enable of the rock at any time just to make sure.

short myS
begin OnActivate
if myS == 0
set myS to 1
FallingRock01.disable
else
set myS to 0
FallingRock01.enable
endif
end[/code]

It may also be that its not actually triggering the zone...

You might also have to remove the reference name from the 'OnTrigger' block and add a check in the script for the rock instead.

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