x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to disable "Get Mass" for non-phys objects?

I have a basic line trace pickup script on a tick, in which it requires "get mass" to calculate the mass of an object to see if its eligible to pickup, issue is "get mass" does not commute with non-phys objects, so when the crosshair is on a non-phys object this bug report is spammed: Floor_16.StaticMeshComponent0 1M_Cube has to have 'Simulate Physics' enabled if you'd like to GetMass. Is there a way to prevent non-physics objects from getting their mass?

alt text

here is the print, is there a method of branching "Is simulating physics" to have "Get Mass" disabled if they arent?

BONUS: Ideally I'd want pickup dependent on whether an object is classed as "pickupable" however i tried this method replacing Get Mass with a blueprint class i assigned on the object, but alas it does not compute, if this could be fixed as well i'd be most greatful. Thanks.

Product Version: UE 4.18
Tags:
more ▼

asked Jul 13 '18 at 07:31 PM in Blueprint Scripting

avatar image

Llama Productions
1 1 2

avatar image Llama Productions Jul 13 '18 at 07:41 PM

Ignore the first question, I managed to make a function out of it which did the job, no error. However, my BONUS question has not been sorted so i'd still appreciate a response on that

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Can you get the actor's Simulates Physics bool value? As opposed to Is Simulating Physics

more ▼

answered Jul 13 '18 at 07:34 PM

avatar image

mightyenigma
3.8k 18 20 20

avatar image Llama Productions Jul 13 '18 at 07:42 PM

nevermind that, 1st issue solved, thanks anyways

avatar image mightyenigma Jul 13 '18 at 07:55 PM

for the bonus question, the GetClass node doesnt work for you?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question