help plane problem and other .......

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

help plane problem and other .......

Post by Tropheus »

hie everybody !

I have a problem with my planes. (map solo for mohaa)
I want to make them flying by 3 in the same time as a squad.
So every splinepath get a different set value (1 2 3).

The first one have to bomb and it a this moment that the problem begin.
bomb drop at the same time the plane apprear on screen and no when the plane is over the bomb splinepath. ??????????????
Bomb get the same "#set" value as the plane.

i use a trigger_multiple with this key / value
setthread / plane

in my script i wrote :
plane:
thread global/bomber.scr::bomb 1
thread global/bomber.scr::bomb 2
thread global/bomber.scr::bomb 3
end
overmore i get this message in the console.
using model vehicles/c47fly.tik // my plane
ERROR: Entity::Sound: aiplane5 needs an alias in ubersound.scr or uberdialog.scr - Please fix. // ok it's my sound not declared. but after what thesoluiton and what the problem .... ???
local.range = vector_length (self.origin - $("bomberplane" + local.name).origin) (global/bomber.scr, 388)
local.range = vector_length (self.origin - $("bomberplane" + local.name)^

^~^~^ Script Error: Cannot cast 'array' to listener

local.range = vector_length (self.origin - $("bomberplane" + local.name).origin) (global/bomber.scr, 388)
local.range = vector_length (self.origin ^

^~^~^ Script Error: binary '-' applied to incompatible types 'vector' and 'NIL'

local.range = vector_length (self.origin - $("bomberplane" + local.name).origin) (global/bomber.scr, 388)
local.range = ^

^~^~^ Script Error: Cannot cast 'NIL' to vector
My second question is. what the effect of this key ?

$mdl vehicle/c47fly.tik

thanks a lot for your answers

Tropheus
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

"airplane5" is misspelled!

ERROR: Entity::Sound: aiplane5

Correct the name in your script_origin. The first bomb spline pathnode must be targetnamed "bomber". The first spline pathnode of the plane should be targetnamed "bomberpath".
Tom Trude,

Image
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post by Tropheus »

it's what i did !!!

bomber for the bomb
and bomberpath for the plane

so ???

another question.
with your system can i bind mg42 on my stuka wings.
if it's possible or not, could you tell me where i can find more informations?

tropheus
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

The bomber script spawns the plane that it uses based on what $mdl value you give the first node in the bomberpath default is the c47fly.tik

key: $mdl value: vehicle/c47fly.tik

you can give all the nodes of the spline path the same model value but that is only for you to see in radiant so you can tell what angle the plane will be at when it is at that node like I said the bomber.scr uses the $mdl value for the plane it spawns not the model value . Just make sure the first node of the plane's splinepath is targetname bomberpath and the first node of the bomb's spline path is bomber and both spline paths have the same key: #set and value number
Post Reply