Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Static physics for carried entity
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#5
RE: Static physics for carried entity

The player is carrying an entity around by clicking and holding left mouse button. If the entity collides with a script area, physics for the entity should be disabled, therefore the player can't carry it anymore and it remains at the position.

Everything is working fine in my script except disabling the physic for the entity. I checked the functionality by using SetEntityActive() and it worked, means that I carried the entity in the area and it disappeared. This was only for testing purposes however, I don't want it to disappear, I want it to remain in the area.

So the only problem is, that apparantly you can't set disable physics for an entity while it is beeing carried around.

Oh and thanks for your quick answers Smile
(This post was last modified: 10-17-2012, 03:11 PM by craven7.)
10-17-2012, 03:09 PM
Find


Messages In This Thread
Static physics for carried entity - by craven7 - 10-17-2012, 02:46 PM
RE: Static physics for carried entity - by craven7 - 10-17-2012, 03:09 PM



Users browsing this thread: 1 Guest(s)