[FilterScript] Spectating System
#11

@SecretBoss & Gammix: Both of your statements make no-sense.

The whole point in hooking "LinkVehicleToInterior()" is to be able to use the native function while allowing extra executions to be performed at the same instance, and without having to edit existent usages of the function itself. In this case, it's saving the vehicle's interior ID in a variable then linking the vehicle to the specified interior ID (by returning the native function and not the hook), so that we can create a new function that returns the vehicle's interior ID (GetVehicleInteriorID()) as it is needed when a player spectates a player that's driving a vehicle.

In brief, you don't use "Hook_LinkVehicleToInterior()", but "LinkVehicleToInterior()".

I added a note to the main post.

Thanks guys.
Reply


Messages In This Thread
Spectating System - by Kevln - 31.10.2015, 08:34
Re: Spectating System - by Ritzy2K - 31.10.2015, 08:50
Re: Spectating System - by SecretBoss - 31.10.2015, 08:52
Re: Spectating System - by jlalt - 31.10.2015, 08:52
Re: Spectating System - by Kevln - 31.10.2015, 09:09
Re: Spectating System - by SecretBoss - 31.10.2015, 09:41
Re: Spectating System - by Kevln - 31.10.2015, 14:36
Re: Spectating System - by Kapersky™ - 31.10.2015, 14:54
Re: Spectating System - by SecretBoss - 31.10.2015, 14:56
Re: Spectating System - by ahameed4755 - 31.10.2015, 17:25
Re: Spectating System - by Kevln - 31.10.2015, 23:07
Re: Spectating System - by Gammix - 01.11.2015, 01:37
Re: Spectating System - by Kevln - 01.11.2015, 03:04
Re: Spectating System - by Gammix - 01.11.2015, 03:54
Re: Spectating System - by Kevln - 01.11.2015, 04:29
Re: Spectating System - by SecretBoss - 01.11.2015, 08:55
Re: Spectating System - by DrMrMuma - 01.11.2015, 10:49
Re: Spectating System - by Kevln - 01.11.2015, 14:27

Forum Jump:


Users browsing this thread: 2 Guest(s)