Jump to content

TheManWithoutAPlan

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by TheManWithoutAPlan

  1. I figured out the issue! You can use PlaceAtMe on other actors! The issue was in the if statement. I commented out everything after 'if( target != player)' and it worked! Yay for sheep! I would still like to know if there is a way to tell if an actor is an enemy or not, though. This would help, because then friendlies could not get hit by this. Thanks everyone!
  2. Hi all, I'm new at modding in general (though I have a background with computers). I have been trying to make a modded spell that turns whatever it hits into a sheep. After reading through some documentation on the wiki, I figured the best way to do this was as follows - make the spell call 'target.PlaceAtMe <Sheep Code>', since the documentation on PlaceAtMe says that it can be used on any actor. After doing this, I could disable the target (to get the 'turned into a sheep' effect). I've been experiencing some troubles with this, though. The code compiles, but it seems to stop executing at this line (any code that comes before that line of the script is still executed). I'm guessing that it is blowing up because I'm doing something wrong and that's why the rest of the script is not getting executed. Although the documentation seemed to suggest that you could use PlaceAtMe with any actor, I have not seen anyone use it outside of using 'Player.PlaceAtMe'. If someone could help me out with this, I would really appreciate it! If you guys have more ideas on how to get my sheep spell to work, I would love that too! For reference, here is the code that I currently have for my spell script: scn SheepsRUsScript ref target begin ScriptEffectStart set target to getself if( target != player ) && ( target.IsActorEvil ) ;This isn't the issue, I made another spell with this setup and that one has no problems. target.PlaceAtMe 000151DD target.Disable endif end
×
×
  • Create New...