1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Spawn zombie at entity's position

Discussion in 'Skript' started by Apollogeist, Apr 3, 2020.

Thread Status:
Not open for further replies.
  1. Apollogeist

    Apollogeist Member

    Joined:
    Apr 3, 2020
    Messages:
    1
    Likes Received:
    0
    Skript Version (do not put latest): Skript 2.4-beta7
    Skript Author: ShaneBee
    Minecraft Version: 1.14
    ---
    Full Code:
    Code (Text):
    1.  
    2. on spawn of zombie:
    3.     cancel event
    4.     spawn 1 zombie at %event-entity%'s position
    5.  
    Errors on Reload:
    Code (Text):
    1.  
    2. Line 3: Can't understand this condition/effect: spawn 1 zombie at %event-entity%'s position (line 3: spawn 1 zombie at %event-entity%'s position')
    3.  
    Addons using (including versions):
    skUtilities 0.9.2

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? N/A

    I've recently gotten into Skript due to a need for some custom plugins on our server. Specifically, I'm working on a script that spawns buffed and geared zombies (incomplete).

    After looking through some of the documentation online, I noticed that the event comes with values, specifically event-entity, but I can't figure out how to get the location of said entity. Is event-entity kind of like an object in Java? How do I pass the location in as a parameter?

    Thank you in advance any help.
     
    #1 Apollogeist, Apr 3, 2020
    Last edited: Apr 4, 2020
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    430
    Likes Received:
    30
    Remove the two percentage signs around "event-entity" :emoji_slight_smile: You should only use percentages signs in a string or variable
    --- Double Post Merged, Apr 9, 2020, Original Post Date: Apr 5, 2020 ---
    If this issue was solved, please mark the post as solved! :emoji_slight_smile:
     
    Apollogeist likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...