Jump to content
drarem

two quick questions

Recommended Posts

1) In the default MyGame, there is a tutorial of picking up and putting things down. If you hit the left mouse button before picking up a box, you have to hit 'E' twice to pick up the object. After picking it up and dropping it, you only need to hit 'E' once to pick it up. Anyone else see this bug, is it a lua script fix?

 

2) Is there a lua query that will return the graphics modes available?

 

Thanks.

Share this post


Link to post

For #1, I can confirm this and I have a workaround.

 

This block of code in FPSPlayer.lua

 

--Throw object if holding one
if self.carryingEntity then
  if window:MouseHit(1) then

 

 

needs to be changed to

 

--Throw object if holding one
if window:MouseHit(1) then
  if self.carryingEntity then

 

as it is, if the left mouse button is clicked, when you hit E on a box afterwards, the MouseHit(1) triggers immediately after the item is picked up, causing it to be dropped. While the above change does work around it, I think there may be some other underlying bug causing the need for this in the first place as I don't believe the mouse click should be "held" as it seems to be until that block executes.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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