Hi everyone I am trying to learn some basics and thought I would try adding in a script.
So I found a basic LUA script that I want to use. It simply rotates an object/character towards the player... now weather I attach the script to a barrel or a character it wont work. (I'd like it to actually work with both)....
I go into the FPE file as well and point the object to the script
I go to the properties on the object/character as well, and change the ai to point to this script...but it never works.
There must be some simple little thing I have missed. Can anyone help me with this please?.
This is the script I am using...
function billboard_init(e)
end
function billboard_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 100 then
RotateToPlayer(e)
end
end
The author of this post has marked a post as an answer.
Go to answer