script mover problem


([MOS]StiloMAN.pl) #1

Hi,

I’ve problem with my script_mover.

I’ve some linked info_train_spline_main and simpl script.

Script:


samolot
{
spawn
{

}


trigger jazdaa_1
{
followspline 0 jazda2 50 wait length 32
}

trigger jazdaa_2
{
followspline 0 jazda3 50 wait length 32
}

trigger jazdaa_3
{
followspline 0 jazda4 50 wait length 32
}

trigger jazdaa_5
{
followspline 0 jazda5 50 wait length 32
}

trigger jazdaa_6
{
followspline 0 jazda7 50 wait length 32
}
}

...


...
trigger captured 
{ 
wm_announce "Message" 
setstate ammo_r invisible 
setstate ammo_c default
trigger samolot jazda_1 
trigger samolot jazda_2
trigger samolot jazda_3 
trigger samolot jazda_4
trigger samolot jazda_5 
trigger samolot jazda_6
} 
} 

I play… I see “Message” but my script_mover don’t run.
Can u help me?

btw. sorry for my English.


(Mean Mr. Mustard) #2

Your trigger names are “jazdaa_1”, etc but when you trigger them you use “jazda_1” – using the correct name should do the trick…


([MOS]StiloMAN.pl) #3

omfg!!

thank u!

and… I have another question:
my script_mover is moving too fast :disgust: can I change mover’s speed ??
and how to do it ?


(The Wanderer) #4

http://www.planetquake.com/simland/ldr1_1/appendix_a.htm
your speed right now is 50. Lower it to move slower


([MOS]StiloMAN.pl) #5

:banghead:

Ok, I changed this numer and my script_mover is still movin’ to fast :???:

I’ve file 4 u! (.map + .script + .bsp), can u look into my map and tell me where is bug ?
http://www.enemyterritory.pl/ftp/stilo/loll.zip


(The Wanderer) #6

Ok where to start…
I think you need to read some tutorials on how the script mover works(the LDR is a must) because I don’t think you understand what the spline points are doing and how the movement is scripted.
Basically:
You can think of the spline points as “checkpoints� that your mover has to go through, but you have to trigger EVERY point to point movement through the script. You can’t just say go the last one and expect the mover to automatically go through every single one of them(which is what you’re doing now).
The way to do it is by having a variable keep track of which spline you are currently on, and then triggering the appropriate spline to spline movement function based on the value of the variable. Look at the scripts for goldrush or fueldump or any of the maps with a mover in them for examples.
Right now your mover is NOT moving. What seems like movement is just the game getting the mover ready based on the

trigger samolot jazdaa_5 

command that you have on line 83.