Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Access a entitys properties form within another entitys script

Recommended Posts

First of all: this might be pretty basic knowlege, but i didnt find any answers to this in the documentations.

(its possible that i just didnt find it)


How can i access a entitys properties form within another entitys script?

Let me give you a example:


I want to Point a entity at another entity. I would think that this would work:

(this line is in the script of the entity i want to point at another entity)



If i try to execute it, i get the error message: self.entity:Point(PlayerPos.entity)



Let me give you another example, i want to move a entity to the position of another entity:



If i try to execute it, i basically get the same error message.


I dont know what to do about that. I know that there are other ways of pointing an entity at another entity and moving a entity to the position of another entity, but it would be easier and spare me much work to simply do it like this.


I appreciate any help smile.png

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...