OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Troll on 09 Sep 2005, 04:41:38

Title: How do I..
Post by: Troll on 09 Sep 2005, 04:41:38
I was just wondering how do you use the tank rider script that RHS uses? Cause I cant figure it out do you have to put a command in the init line or what?

Cheers

          - Troll
Title: Re:How do I..
Post by: bedges on 09 Sep 2005, 10:21:58
some more information is needed before we can help.

when you say RHS i take it you mean red hammer studios? is this for an addon you've downloaded? do you know what the script is supposed to do? is it small enough to post here?
Title: Re:How do I..
Post by: UNN on 09 Sep 2005, 12:58:04
Do they use a script?

Or do they have cargo positions on the back of the tank. If they do, then something like this should work in each soldiers init:

Code: [Select]
This MoveInCargo Tank01
Title: Re:How do I..
Post by: Kyle Sarnik on 09 Sep 2005, 22:46:10
Do they use a script?

Or do they have cargo positions on the back of the tank. If they do, then something like this should work in each soldiers init:

Code: [Select]
This MoveInCargo Tank01

Yes its not a script, its actualy cargo positions, kind of like getting in the back of a 5t truck. It simply makes more sense to do it that way, and its also easier and works a lot better then using some sort of setpos/switchmove script. The only problem, however, it can't be done for all tanks, only ones that have special models and configs to allow for it.
Title: Re:How do I..
Post by: Troll on 10 Sep 2005, 02:17:22
Yeah I think that is it, makes the infantry sit on the tank. So this is the cargo postion thing I put in the units init line?

Quote
This MoveInCargo Tank01

If it is that will be cool, will add a bit of eye candy so to speak for my Chechnya mission.

             - Troll
Title: Re:How do I..
Post by: Kyle Sarnik on 10 Sep 2005, 03:28:11
Yeah I think that is it, makes the infantry sit on the tank. So this is the cargo postion thing I put in the units init line?If it is that will be cool, will add a bit of eye candy so to speak for my Chechnya mission.

             - Troll

Yes, and the tank has scripts to automaticaly eject the units off of the tank if the crew turns in, so make sure you put this in the tanks init field:

Code: [Select]
this setbehaviour "SAFE"
Title: Re:How do I..
Post by: The-Architect on 10 Sep 2005, 03:42:13
If you want to have units sitting on tanks try this script. I havn't used it I just remembered seeing it in the ed depot.

http://www.ofpec.com/editors/resource_view.php?id=729
Title: Re:How do I..
Post by: Kyle Sarnik on 10 Sep 2005, 03:54:18
If you want to have units sitting on tanks try this script. I havn't used it I just remembered seeing it in the ed depot.

http://www.ofpec.com/editors/resource_view.php?id=729

Like I previously stated, scripting such a feature is hardley as good looking and working as simply making cargo spaces, it just makes more sense. Thats why I like when mods and addon makers put cargo spaces on their tanks because its something that has to be edited in the model and config and is easier to remove from a tank then in the editor than it is to try and add the effect to a tank.
Title: Re:How do I..
Post by: Troll on 10 Sep 2005, 05:08:26
Yeah I would have to agree with Kyle, why use a script if the addon maker has included cargo spots on his tank. But thanks for the link anyway Architect.