35 {
37 {
38 if ( GetHierarchyRootPlayer().CanDropEntity( this ) )
39 {
40 if ( IsRuined() )
41 {
42 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
43 }
44 else
45 {
46 PlayerBase owner_player = PlayerBase.Cast( GetHierarchyRootPlayer() );
47
48
49 vector trapPos = owner_player.GetDirection();
50 trapPos[1] = 0;
51 SetPosition( owner_player.GetPosition() + trapPos );
52
54
55 SetOrientation( owner_player.GetOrientation() );
56 }
57 }
58 }
59 }
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.