Jump to content

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


NoIE
 Share

Recommended Posts

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

Link to comment
Share on other sites

You can download the files from Aggrors videos here http://www.aggrortutorials.com/index.php/viewcategory/3-leadwerks

Saves a lot of errors from typos. You may still need to follow instructions from the videos to get them to work.

Thank you! but I was just wondering whether I can lock X axis and Z axis with use Point function.

Please forgive my poor English.

 

post-12936-0-43515100-1418403285.gif

Link to comment
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.

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.

 Share

×
×
  • Create New...