The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making chests fly open with touched.
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
Making chests fly open with touched.

So I know the callback function
SetEntityPlayerInteractCallback("chest_small_6","Chest1",true);
would be used, and the function that it would call to would look something like
void Chest1(string &in entity)
{
    AddPropImpulse("chest_small_6",0,25,0,"");
}
but the problem with this is that when a player opens the chest, he is grabbing onto it and so no matter how large the impulse the lid will be held in place by the player (well it will fly open and then fly back to a semi-closed state, or wherever the player's cursor is). Is there any way to get around this? (such as a way to make the player let go of the chest before it is sent flying open?)

11-10-2010, 01:39 AM
Find


Messages In This Thread
Making chests fly open with touched. - by Homicide13 - 11-10-2010, 01:39 AM



Users browsing this thread: 1 Guest(s)