You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CProjectedDecal decalEnt = Utilities.CreateEntityByName<CProjectedDecal>("info_projecteddecal");
decalEnt.Texture = 0 // How do you get/set the texture id?
decalEnt.Distance = 64.0f;
decalEnt.Teleport(
new Vector(
pawn!.AbsOrigin!.X,
pawn!.AbsOrigin!.Y,
pawn!.AbsOrigin!.Z
),
pawn!.EyeAngles,
new Vector(0.0f, 0.0f, 0.0f)
);
decalEnt.DispatchSpawn(); // Crashes server instantly
decalEnt.AcceptInput("Activate"); // Needed in the hammer editor for the decal to appear.
The text was updated successfully, but these errors were encountered:
Non-working pseudocode:
The text was updated successfully, but these errors were encountered: