Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
charon productions

Created group unable to mount transport

Recommended Posts

If i join a group that i created with creategroup and createunit

i can not mount any vehicle.

What could be the reason for that?

I was trying to find out for hours why a created group would not

getin a transport by getin-waypoint (you can only moveincargo), so i made the player a member of the group.

It is likely that the inability to board a transport goes for all units of that group.

Boolean = locked vehicle
returns false for the player.

I have no idea what could cause that.

Anyone an idea?

EDIT:

{_x assignAsCargo _etrans1} foreach units _spgrp3;

units _spgrp3 ordergetin true;

gets the created units into the transport and also the player can mount it.

But that is a workaround. The getin-waypoint should work too.

But nothing new that scripted stuff doesnt behave like editor-placed stuff.

Edited by Charon Productions

Share this post


Link to post
Share on other sites

I read somewhere but cannot remember where,

(found the link :) http://community.bistudio.com/wiki/Locality_in_Multiplayer )

A unit can change it's locality for example units or players entering or exiting vehicles. I'm not a 100% sure of the effects of locality, I know that if I spawn a chopper with a script and give it a global group name for example Chop1 and use joinSilent as in

 [unitArray] joinSilent chop1;
{_x assignAsCargo chop1} foreach units [unitArray];
[unitArray]orderGetIn true;

It works. But what I haven't worked out is how to get the units to board a vehicle if I make the group of the vehicle local in the script e.g. _grp Ive tried putting

	_grp = _this select 0;
_veh = _this select 1;
_grp= createGroup EAST;

and calling the script with

null= [A,jeep] execVM "Insconvoy1.sqf";
[b]and then in a trigger[/b]
[POW1,Guard,Guard] joinSilent A; 
{_x assignascargo jeep} forEach [POW1,Guard,Guard];
[POW1,Guard,Guard] orderGetIn true;

but that doesn't work:stuck: back to search button unless a wise one can shed some light?

But nothing new that scripted stuff doesnt behave like editor-placed stuff. :)
Edited by Padjur
updating and adding my own problem

Share this post


Link to post
Share on other sites
Sign in to follow this  

×