OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Zipper5 on 07 Jul 2009, 20:58:49

Title: 'ProperJoin' by Zipper5 (ACCEPTED)
Post by: Zipper5 on 07 Jul 2009, 20:58:49
Hi everyone.

Well, here's my first ever proper script.

The story behind it is that I was getting frustrated at how when a player joins a squad, and is not the leader, he is still assigned as "1" in the group. This affects the formations of the group and just looks really weird. As far as I know, no one has posted a solution to it, so I set out to find out how to fix it. And since I'm trying my best to learn SQF, I made sure I'd do it all in SQF.

And well, I found a solution. So here it is. What I like to call 'ProperJoin'.

All the necessary files to get it working are included. I would appreciate any and all beta tests of it as I'm sure someone's going to find an issue, since it's my first proper attempt. The following files are included:

- DemoMission.Chernarus
- DemoMission.Chernarus.pbo
- init.sqf
- properJoin.sqf
- Readme.txt

You can find the zip file attached below. Thanks guys. :D


OFPEC Download (http://www.ofpec.com/ed_depot/index.php?action=details&id=520)
Title: Re: 'ProperJoin' by Zipper5
Post by: Rellikki on 24 Jul 2009, 05:02:00
It's a nice idea. And probably useful for those who had this problem... But in ARMA 2 we've got the command joinAs (http://community.bistudio.com/wiki/joinAs), where you can assign the joiner a different number than 1.
This script might probably be more useful in ArmA or OFP rather than ARMA 2, because we've got that new command, which obviosly is more reliable.