In DST the code is:
inst.entity:AddFollower()
inst.entity:SetParent(parent.entity)
inst.Follower:FollowSymbol(parent.GUID,"",0,0,0)
but in DS AddFollower cannot be used together with SetParent. This will cause the position to double.
Also, in DS ther is no Follower.StopFollowing.
Steps to Reproduce
c_teleport(0,0,0)
spawn an inst.
parent=GetPlayer()
inst.entity:AddFollower()
inst.entity:SetParent(parent.entity)
inst.Follower:FollowSymbol(parent.GUID,"",0,0,0)
walk and look at how inst moves.
- 1
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now