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.

Entity coordinates problem

Discussion in 'Skript' started by BoxMiners, Oct 3, 2022.

  1. BoxMiners

    BoxMiners Member

    Joined:
    Jul 19, 2022
    Messages:
    35
    Likes Received:
    0
    Code (Text):
    1. command /testrush:
    2.  trigger:
    3.   set {rushtest.%player%} to true
    4.   send "&aTEST"
    5.   set {rushtest} to location -48, 4, -19
    6.  
    7. every 1 second:
    8.  loop all players in radius 10 of {rushtest}:
    9.   if {rushtest.%loop-player%} is set:
    10.    spawn a zombie at location -57, 4, -59 in world "doors1"
    11.    set {_x} to player's last summoned entity's x-coordinate
    12.    set {_y} to player's last summoned entity's y-coordinate
    13.    set {_z} to player's last summoned entity's z-coordinate
    14.    send "%{_x}%, %{_y}%, %{_z}%" to loop-player
    15.    delete {rushtest.%loop-player%}
    So i ran into a problem while making a horror map. I don't know how to set the coordinates of an entity the errors this. I couldnt find other fixes on other platforms i have looked


    upload_2022-10-3_19-37-34.png
     
  2. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    111
    Likes Received:
    3
    replace player's last summoned entity with last spawned entity
     

Share This Page

Loading...