Jump to content

[Scripts] MoveTo function not working when fired from activator


xgm3192

Recommended Posts

Hi all, sorry if this it the wrong place to post this.

 

I'm having an issue with firing the moveto function from an activator.

 

Basicly, I have a weapon which sucks people up and then fires them out. The sucking up I have working fine however the placing people down is being troublesome.

 

I'm using a generic missile projectile which on impact places an activator down when it explodes. This activator then has the following script attached to it:

 

 

Scriptname PlaceActorAtProjectileLandLocation extends ObjectReference

ManCannonQuest Property Manager Auto 

Event OnInit()

Actor actorBeingLaunched = Manager.CurrentActor

Debug.Notification("Running activator script")

actorBeingLaunched.disable()
actorBeingLaunched.moveTo(Self)
actorBeingLaunched.setPosition(Self.GetPositionX(),Self.getPositionY(),Self.getPositionZ()+50)
actorBeingLaunched.enable(0)

actorBeingLaunched.playIdle(resetIdle)
ObjectReference boom=placeAtMe(BoomToRagdoll)

Disable()
Delete()

endEvent

Idle Property ResetIdle Auto
Explosion Property BoomToRagdoll Auto

However, the script runs (debug message works) but nobody appears.

 

I can call the moveTo function from a magic effect script as I use one to remove people who have been accidentally sucked up and place them next to the wielder of the gun. That works fine. But when calling it from this activator, doesn't seem to work :sad:

 

Any ideas?

Cheers

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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