Hello all, I was hoping to get steered in the right direction so that I can be on my way to develop a mod that I've been wanting to create for a while now.
To get to the point, I would like to summon a certain number of objects (10 for example) at the target location of a spell. These items can be base items for all I care, I am just looking for framework here.
Now, I was able to get one item to summon (A door in this case, but it can obviouslly be changed to anything) using this method http://forums.nexusm...mmoning-a-door/
My issue is trying to adopt this to summon multiple items, preferable in a circle around the target (I can work on that later though), for now I just want to know what I'm doing wrong.
Incorperating a array in the matter is what's most troubling to me at the moment. I'm not sure if this method is the right direction or not but its something I tried to combined from another script
Scriptname _TeleportDoorMarkerScript extends ObjectReference Door Property TeleportDoor Auto Activator Property EffectSummonBanishFX Auto ObjectReference Doors Event OnInit(Actor Target) Doors = new ObjectReference int i = 0 While i < 10 Self.SetAngle(0.0,0.0, Game.GetPlayer().GetAngleZ() + 90 + i) Self.PlaceAtMe(EffectSummonBanishFX) Doors[i]=Self.PlaceAtMe(TeleportDoor) Doors[i].Enable() i+= 1 EndWhile EndEvent
I also tried something like below to no avail.
Scriptname _TeleportDoorMarkerScript extends ObjectReference Door Property TeleportDoor Auto Activator Property EffectSummonBanishFX Auto Event OnInit(Actor Target) int i = 0 While i < 10 Self.SetAngle(0.0,0.0, Game.GetPlayer().GetAngleZ() + 90 + i) Self.PlaceAtMe(EffectSummonBanishFX) Self.PlaceAtMe(TeleportDoor[i]) i+= 1 EndWhile EndEvent
Again, super rough code but I'm just trying to get the point across. (I honestly don't think a .Enable should even be necessary). I think the Self. portion is what's throwing me off the most.
So again, main idea is to shoot a spell at a target (could be the ground or a person) and it will summon 10 items of whatever.
Even if you can point me to a thread remotely close to what I'm looking for would be helpfull because I sure can't find one other than maybe this one. http://forums.nexusm...-summons-spell/
I'm not entirely sure how to adopt that to what I'm looking for as I don't know if NPC vs objects differ at all.
Anyways, if you could help I would appreciate it, if not, no worries. I'll be happy to clear anything up that I can.