Game Development Community

Cant find the onMountVehicle function

by Guimo · in Torque Game Engine · 04/19/2007 (4:18 pm) · 3 replies

Sorry with this question but I'm looking for this function:
onMountVehicle(%targetObject.getDataBlock(), %client.player, %targetObject);

This function is mentioned in many resources but when I try to use it the engine tells me it doesnt exist.
I have searched in all the scripts in the TGE1.5 but found nothing. May someone tell me where to find this one?

Thanks!
Guimo

#1
04/20/2007 (9:02 am)
Found it posted in a forum (outside of GarageGames). It is supposed to be in the /server/scripts/vehicle.cs file. I really wonder why it is not available in the TGE1.5 or TGEA 1.1.

Luck!
Guimo
#2
04/21/2007 (5:12 pm)
Guimo,
Vehicle.cs is a script file that I know comes with the Heli resource. The Heli resource does expand on the Mount / UnMount scripting.
#3
04/23/2007 (9:41 am)
Thanks! Ill search for it!
Luck!
Guimo