SC2Mapster Forums

Development > Miscellaneous Development

Turret Reference

  • 1 post
    #1 Jan 03, 2013 at 00:45 UTC - 0 likes

    I have a custom model with a properly working TurretZ reference. What I am trying to do is rotate it through triggers.

    My problem is simply getting the proper actor reference in the actor actions. I am not sure how to properly set the actor action so it can be given a "send actor message via name" through it's host.

    My trigger action:

     Actor - Send (Combine ("AttachSetRotation {TurretZ 0} {", (Text((X of p_data[(Picked player)].target)) with 6 decimal places), ",", (Text((Y of p_data[(Picked player)].target)) with 6 decimal places), ",0.000000", "}")) to the "Turret" actor of (Actor for p_data[(Picked player)].hero)
    

    "to the "Turret" actor" is just my last attempt at an actor reference. I tried various permutations of this to no avail. Can anybody figure out how to set up a proper actor reference on a turret actor that can be sent a "send actor message as text via name" function?

  • 1 post

You must login to post a comment. Don't have an account? Register to get one!