Jump to content

I tried to make a turrets script control, but it is not satisfactory.


Recommended Posts

Posted

video:

 

code:

function Script:UpdateWorld()

self.entity:Point(self.player, 2, Time:GetSpeed() * self.rotSpeed)

   ---- Can I remove follow 4 line ?
rotation = self.entity:GetRotation()
rotation.x = 0
rotation.z = 0
self.entity:SetRotation(rotation)

....
....

Please forgive my poor English.

 

post-12936-0-43515100-1418403285.gif

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.

Guest
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...