Jump to content

Get the player to be the cause of an explosion


Smurf_Impact

Recommended Posts

Hello,

 

I'm working on making remote explosives. So far, everything is working fine except one thing. When I trigger the explosives and that the explosion kills a target, lets say a raider, I don't get any experience.

 

I'm using the FOSE function IsKeyPressed in gamemode to trigger the explosives.

 

First, I tried using the DamageObject function while putting the explosion in the destruction data of the object. When I shoot the object, I get the desired experience if a target gets killed while when I trigger the explosion using the keyboard, that doesn't give the player any experience.

 

I also tried the PlaceAtMe function to place an explosion at the location of the object, which doesn't work either experience-wise.

 

My question is:

 

How can I link the player to be the cause of an explosion, so that the player gets experience when killing a target with it?

 

Thanks!

Smurf_Impact

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...