Page 1 of 1

Motorcycle problem

Posted: Wed Feb 04, 2004 10:47 am
by Franko74
Hi,

i made a motorcycle ride, what happen along a path, everything works fine,
but the driver doesn't appear.. :(

here is the code:

//------------------------------------------------------------------------------
// motorcycle coming
//------------------------------------------------------------------------------

trigger_bikeinit:
$trigger_bikeinit waittill trigger
$trigger_bikeinit remove
$bike thread global/t2l2_motorcycle.scr::gag2 $bike nil "models/human/german_wehrmact_soldier.tik"
$bike drive $bikeway
end


(i tried to use enemy bike part of vehicle_thinkers.scr, but it didn't work too. i think, because it just tells the enemy motorcycle blow up.. 8-) )

Has any idea? :idea:

F74

Posted: Wed Feb 04, 2004 9:00 pm
by Angex
gags/t2l2_motorcycle.scr wrote:// exec gags/t2l2_motorcycle.scr::gag2 $cycle $driver "optional modelname"
//
// setup:
//
// - place the motorcycle vehicle and assign a unique $targetname
// - place the motorcycle rider and assign a unique $targetname <OR>
// pass NULL as the second parameter and the model name as the third
If you specify a model instead of a AI character the second parameter needs to be NULL, in you script it is NIL. Also you script says to look in the global folder, but I found the script in gags. Change the line where the script is executed to the code below, and I think it should work okay:

Code: Select all

exec gags/t2l2_motorcycle.scr::gag2 $bike NULL "models/human/german_wehrmact_soldier.tik"

Posted: Wed Feb 04, 2004 11:29 pm
by Franko74
U 're right, Angex, the script is in "gags" folder, but i put it to "global" folder :)
Thanks your help, the stuff works :)