Jump to content

two quick questions


drarem
 Share

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.

Link to comment
Share on other sites

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

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.

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