OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 19 Aug 2003, 23:04:59

Title: moveindriver MP problem
Post by: Terox on 19 Aug 2003, 23:04:59
I want to put a pilot into a chopper, have it locked so no one else can get in and he can't get out, except by death

The chopper doesnt respawn so i dont have to worry about having to reseat the pilot etc
after it has been damaged

I placed the following line in the init field of the Pilot Player unit

this moveindriver C1

C1 being the name of the Chopper



The problem i am getting is intermittent and doesnt show up when testing on my machine, just when on a dedicated server

If i select pilot, when it is working properly, i start in the pilots seat and all is okay

When it is working incorrectly, i start alongside the chopper,  at the location where the player unit icon is, i see my Squad tag on the side of the chopper and i can start the engine, take off etc, but i cant move, like in a cutscene, all i can do is turn my head sideways etc


Have tried "moveincommander",  but that doesnt even get me into the chopper, obviously there isnt a commander slot available

Have tried different choppers, Kamov, apache etc eytc, all give same intermittent fault

At a guess, i would imagine that the server is locking the chopper sometimes after and sometimes before the player is moved into the pilot seat, which would explain the intermittent problem


Any ideas???
Title: Re:moveindriver MP problem
Post by: peter on 19 Aug 2003, 23:16:29
maybe it works if you unlock the chopper and add lock to the players init ...

this moveindriver C1; C1 lock true
Title: Re:moveindriver MP problem
Post by: Terox on 20 Aug 2003, 00:08:49
Thanks for trying mate,  unfortunately it didnt work

I also tried placing the following commands in the init.sqs instead of using the Player's init field

W17 moveindriver C1
E17 moveindriver C2
~3
C1 lock true
C2 lock true


where W17 and E17 were the players name  and C1 and C2 were the choppers name


This gave the same fault as well

I also tried the vehicle lock setting on Unlocked as well as default


So i am at a loss at the moment.

Anyone have any more ideas
Title: Re:moveindriver MP problem
Post by: peter on 20 Aug 2003, 14:33:37
where are all the mp-wizards ... ? ;D
just another guess: i would try a dealy before the movein-lines in the init.sqs ...
Title: Re:moveindriver MP problem
Post by: Terox on 20 Aug 2003, 19:06:52
where are all the mp-wizards ... ? ;D
just another guess: i would try a dealy before the movein-lines in the init.sqs ...



Whats a dealy???
Title: Re:moveindriver MP problem
Post by: peter on 21 Aug 2003, 01:47:44
ooops, sorry: delay, ... ~3  ::)
Title: Re:moveindriver MP problem
Post by: Terox on 21 Aug 2003, 02:04:12
there's a delay further up the init.sqs already
Title: Re:moveindriver MP problem
Post by: Chris Death on 21 Aug 2003, 03:42:30
Terox, have you already tried to lock the chopper
upon a condition, which checks the presence of
the pilot inside the chopper?  ;)

Just a thinking, not tested yet, but worth a try.

~S~ CD
Title: Re:moveindriver MP problem
Post by: Terox on 22 Aug 2003, 18:15:24
thx chris,  havent had time yet to try experimenting, was hoping someone would come up with a quick fix.
I cant believe no one has tried to do it before

Bit o script required here methinks

i read that if a chopper is locked to start with, that a unit needs to be assigned as driver before he can get in,  maybe this is what is needed before the movin command.  Need to do a bit o testing this weekend,  thx for input folks
Title: Re:moveindriver MP problem
Post by: Terox on 23 Aug 2003, 20:06:30
sorted

I had to move chopper and pilot to a location away from the rest of his teamates

pilot called w17
chopper called C1

had chopper exec following script

@driver C1==W17
C1 lock true

wasnt able to move him in first using moveindriver or assignasdriver commands
This was due to a conflicting script that uses RSC titles etc for a weapon selection screen similar to Battlefield

Too much hassle to debug it, this was the easiest and quickest solution


Now pilot gets in, he then gets locked in, so he cant cap flags etc etc


Thx for help