Re: C++ help question [message #380792 is a reply to message #380533] |
Fri, 17 April 2009 04:02 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
If you're trying to migrate this back into SSGM because you want it to work with vehicles then I would suggest keeping it as a plugin.
You could add a void reb_vet_System::Custom(GameObject *obj, int message, int param, GameObject *sender) {
And on the custom check to see if they entered a vehicle.
On the objecthookcall vehicles are already hooked in that plug-in, you could attach a vet script similar to that of the player version to vehicles there. But don't forget people will try to exploit this as much as possible... (If they get in the vehicle and set it's hea;th/armor higher, remember to set it back when they exit).
|
|
|