Sparkle11 Posted November 24, 2015 Share Posted November 24, 2015 Hi everyone! In my Script i need to GetPosition() of the local entity, which script can not use. How to do it? I have fpsplayer on the map. And i need to use it from the local script Quote Link to comment Share on other sites More sharing options...
Rick Posted November 25, 2015 Share Posted November 25, 2015 I don't fully understand your question. Do you mean from 1 script how to get the position of another entity? You can link them with script variables like: Script.player = nil --entity Then in the editor draw the player to this field in the script tab of your other entity and now inside that you can use self.player to refer to the player entity. You can do this with any and all entities. 1 Quote Link to comment Share on other sites More sharing options...
Sparkle11 Posted November 25, 2015 Author Share Posted November 25, 2015 I don't fully understand your question. Do you mean from 1 script how to get the position of another entity? You can link them with script variables like: Script.player = nil --entity Then in the editor draw the player to this field in the script tab of your other entity and now inside that you can use self.player to refer to the player entity. You can do this with any and all entities. Thank you very much, Rick! Best regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.