Author Topic: Spawn Explosion at player  (Read 2628 times)

I want to know how to spawn an explosion at a player. I'm not so sure if this is even possible,
but in the events I believe you could do so.

<Player>.spawnExplosion(<ProjectileData>, <scale>);

<Player>.spawnExplosion(<ProjectileData>, <scale>);
Lol thanks tested on a player on my server

Alternatively, you could also do:

%obj = new Projectile()
{
   dataBlock = <ProjectileData>;
   initialPosition = <Player>.getHackPosition();
};

MissionCleanup.add(%obj);

%obj.setScale(<scale>);
%obj.explode();

What is the difference between getHackPosition and getPosition?

What is the difference between getHackPosition and getPosition?

getHackPosition returns a position located slightly higher on the player's body.

getHackPosition returns a position located slightly higher on the player's body.

Specifically, the center of their player model.


Specifically, the center of their player model.

Yes, while getPosition returns the center of bottom of the model.