Destroy Object
#2

You are using dynamic objects but are comparing for BULLET_HIT_TYPE_OBJECT. Dynamic objects are Player Objects, furthermore the ID is different so using OnPlayerWeaponShot is not the best thing to do.
You could get the Player Object ID of the Streamer Object and compare that with the hitid (and hittype with BULLET_HIT_TYPE_PLAYER_OBJECT respectively), but that is more work than is neccessary.

Use the Streamer callback "OnPlayerShootDynamicObject". It's called only for dynamic objects and you won't need to retrieve the Player Object ID.
Reply


Messages In This Thread
Destroy Object - by Hunud - 10.07.2018, 15:31
Re: Destroy Object - by NaS - 10.07.2018, 15:37
Re: Destroy Object - by Hunud - 10.07.2018, 15:45
Re: Destroy Object - by NaS - 10.07.2018, 15:50
Re: Destroy Object - by Hunud - 10.07.2018, 16:06
Re: Destroy Object - by NaS - 10.07.2018, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)