Frictional Games Forum (read-only)

Full Version: ConnectEntities
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
That's a part in the wiki that should be looked for, it has zero information regarding the matter of connections..

What I want to do is, to tie an entity to the player. Specifically an area_Script. I doubt anything like a Light would be able to follow the player, although I did saw some evidence of a dynamic light in action <_<

...Anyway, my attempts did not come to fruition. And all I wonder right now is; is this even possible?
The ConnectEntities function is used to make two entities (usually gameplay types) function together, like a lever opening a door. Your request, I think is impossible; normally you could attach entities (or in your case, lights) to one another in the model editor, but the player isn't a model. The player is more of an invisible object that occupies the exact dimensions of a normal human; it is used so there will be realistic collision in the environment.

Hope that helped.
So, can I use the Model Editor in order to create a new player-model which will have an Area_Script with the ability to set a lookAtCallback function as it is attached to the player's feet?