480 {
481 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
483 return;
484
486 {
488 if (player)
489 {
490
492
494 player.ServerReplaceItemInHandsWithNew(lambda);
495 }
496 else
497 {
498
501
502 if (
GetType() ==
"WoodenStick" )
503 ori = ori +
Vector(0,90,0);
504
507 stick.SetPosition(pos);
508 stick.PlaceOnSurface();
509
510 if ( stick.GetType() == "LongWoodenStick" )
511 {
512 pos = stick.GetPosition() +
Vector(0,-0.3,0);
513 stick.SetPosition(pos);
514 }
515
516 stick.SetOrientation(ori);
517 g_Game.ObjectDelete(
this);
518 }
519 }
520 }
eBleedingSourceType GetType()
const int ECE_PLACE_ON_SURFACE
class GP5GasMask extends MaskBase ItemBase
void ApplyResultModifications(ItemBase result)
bool CanTransformIntoStick()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
vector GetPosition()
Get the world position of the Effect.