Hiya,
Is there any way to get the location of a crashed heli (patrol & chinook) and destroyed APCs?
Thanks in advance,
T.
Getting crashed heli & destroyed APC location
Discussion in 'Rust Development' started by Rebajas, Apr 26, 2018.
-
Calytic Community Admin Community Mod
Yes, it's pretty easy.
Look at HooksExtended
Specifically, OnHelicopterDeath, OnChinookDeath, and OnBradleyAPCDeath.
Doing something equivalent in your own plugin, without using HooksExtended..
Code:void OnEntityDeath (BaseCombatEntity entity, HitInfo info) { if(entity is BaseHelicopter) { // do something } if(entity is BradleyAPC) { // do something } if(entity is CH47Helicopter) { // do something } }