Jump to content

Recommended Posts

Posted

Successfully created rockfalls with Ontriggerenter but just can't work out how to do it with OnHit. Script is running locally on a spiked barricade (ones you see outside forts) which is an activator,

ObjectReference Property ActiObj Auto is a TrapFallingRock activator, other properties not required as of yet.

 

  Reveal hidden contents

 

What is confusing me more is this script...

 

  Reveal hidden contents

 

Runs perfect on a LeanToTrap that also has falling rocks.

Help!

Posted

Difference in the two scripts:

Self is a special variable available to all papyrus scripts it can be used to reference the object holding the script. If that object also has an OnActivate event, calling Activate will trigger that event.

 

Possible reason for the first to not be working:

If you try to activate an object that does not have a script with the OnActivate event, nothing will happen. First step then is to determine if the object to be activated does have an OnActivate event available to run. If not, create one.

Posted (edited)

Erased it, cause IsharaMeradin got first while i was typing.

Edited by maxarturo
  • Recently Browsing   0 members

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