Posts
941
Respect
136Add +1
Forum Rank
The Decider
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
heli= getEnt("heli","targetname");
heli_clip= getEnt("heli_clip","targetname");
heli_clip enablelinkto();
heli_clip linkto (heli);

The easiest way would just be to create a collmap for the model so that it naturally has collision when placed into the game. No need for linking clips to it.
if you are using more than 1 clip
helicopter = getEnt("helicopter", "targetname"); // your helicopter
helicopter_clips = getEntArray("heli_clips", "targetname"); //your clips
helicopter_clips arrayLinkTo(helicopter); //link all yo clips
//method
arrayLinkTo(linking_object)
{
for(k=0;k<self.size;k++)
{
self[k] linkTo(linking_object);
}
}


it has a collmap o.o but when i make my vehicle a script_vehicle it just ignores the collmap for some reason .-.

![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
clip1 LinkTo(helicopter);
clip2 LinkTo(helicopter);
The clips and anything else you link to the helicopter will move with the helicopter. I can tell you right now that allowing the player to walk around in a horizontally-moving object is going to be glitchy as hell, which is why players' movement is always locked while in vehicles. The player will most likely glitch out of the helicopter entirely.
The other approach would be to edit the helicopter model in Maya and add some clear-textured doors to the sides of the helicopter which are invisible but still block the player.

you'll be in my map credits list if i manage to release it one day xD