Chinook Hook "OnCrateLanded" broken?Solved
hello, what is the different between

void OnCrateDropped(HackableLockedCrate crate)
{
    Puts("OnCrateDropped works!");
}​
and
void OnCrateLanded(HackableLockedCrate crate)
{
    Puts("OnCrateLanded works!");
}​
i use always
void OnCrateDropped(HackableLockedCrate crate)​
for my plugin if a chinook has delivered a crate, but now if the new cargoship is spawned it triggers this hook too
so i test the other one
void OnCrateLanded(HackableLockedCrate crate)​
but this hook never was triggerd if a codelocked crate is landing and/or hit the ground

Can somebody maybe help me and point to the right direction? how i can trigger this hook just if the chinook drops the crate and not if cargoship is spawned ?

thanks
The hooks are indeed there and haven't changed, so if Rust still uses that code then they are called.
That really is not an answer to his question :P

But indeed @dIMjIM, basically the hook is right cause the ship contains a hackable locked crate. You should be able to check whether the crate is on the ship or even above water, but I don't know how.
In response to riderxyz ():
That really is not an answer to his question :P

But indeed @dIMjIM, basically the hook is...
hey thanks, yeah i have some ideas with my C# limited knowledge, but not much time at the moment i will try some more test at the weekend ^^
In response to dIMjIM ():
hello, what is the different between

void OnCrateDropped(HackableLockedCrate crate){...
on dropped - when its dropped from chinook. on landed - when it hits ground
In response to Orange ():
on dropped - when its dropped from chinook. on landed - when it hits ground
hi, did u try this hooks? if i try use OnCrateLanded and ingame the crate hit the ground this hook dont called just the first one on drop is called.
In response to dIMjIM ():
hi, did u try this hooks? if i try use OnCrateLanded and ingame the crate hit the ground this hook d...
no, i am not, but it worked this way at some time
In response to riderxyz ():
That really is not an answer to his question :P

But indeed @dIMjIM, basically the hook is...
hello, i solve this now like this, thanks for the idea :p
void OnCrateDropped(HackableLockedCrate crate) 
{
	var newpos = new Vector3();
	newpos = crate.transform.position;

	if (newpos.y < 27.3f)
	{
          //do cargoship code stuff
	  return;
	}
	else
	{
          //do chinook code stuff      

	}

}​
Locked automatically