Solved Spawn zombie at entity's position

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Apollogeist

Member
Apr 3, 2020
1
0
0
Skript Version (do not put latest): Skript 2.4-beta7
Skript Author: ShaneBee
Minecraft Version: 1.14
---
Full Code:
Code:
on spawn of zombie:
    cancel event
    spawn 1 zombie at %event-entity%'s position

Errors on Reload:
Code:
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')

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.
 
Last edited:
Remove the two percentage signs around "event-entity" :emoji_slight_smile: You should only use percentages signs in a string or variable
[doublepost=1586440187,1586055700][/doublepost]If this issue was solved, please mark the post as solved! :emoji_slight_smile:
 
  • Like
Reactions: Apollogeist
Status
Not open for further replies.