Open oppars01 opened 7 months ago
var coin = Utilities.CreateEntityByName<CDynamicProp>("prop_dynamic"); coin.SetModel("models/inventory_items/coin_csgo.vmdl"); coin.Teleport(origin, angle, velocity); coin.DispatchSpawn(); coin.AcceptInput("SetParent", player, coin, "!activator", 0);
In the above figure, I want to set the Parent of the entity as player and I want it to move with the player, but it does not work.
entity.AcceptInput("SetParent", @event.Userid.PlayerPawn.Value, null, "!activator"); This work
entity.AcceptInput("SetParent", @event.Userid.PlayerPawn.Value, null, "!activator");
In the above figure, I want to set the Parent of the entity as player and I want it to move with the player, but it does not work.