Motorcycle problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Franko74
Corporal
Posts: 45
Joined: Sat Jan 03, 2004 12:48 am
Location: Hungary
Contact:

Motorcycle problem

Post 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
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post 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"
User avatar
Franko74
Corporal
Posts: 45
Joined: Sat Jan 03, 2004 12:48 am
Location: Hungary
Contact:

Post 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 :)
Post Reply