Code:
Vector angles = Extensions.GetAngles(ent15); // Get the angles of entity pro
angles.Y += 45; // Set the angels of entity pro with + 90 degrees
Extensions.SetAngles(ent15, angles); // Set the angels of entity pro
The default angles are (0, 0, 0), this can be simplified to:
Extensions.SetAngles(ent15, new Vector(0, 45, 0));
Code:
origin.Z += 30; // this will make it be on the top of carepackage
Extensions.PlayFX(stealthBombFx, origin); // Play the explosion on the place of origin (the var origin)
What do you mean by not working? Like nothing happens or what? Also, you're supposed to increase the Z axis before playing the FX to have it on the top the carepackage. Are you sure that you are looking at this care package when you spawn? That's why I always spawned the care package under the player's feet to always make sure the FX was working.
A casual conversation between barata and I about Nukem.