Jump to content
Sign in to follow this  
KaRRiLLioN

getText uses

Recommended Posts

Is there a way to find the number of non-cargo slots in a vehicle using the getText command? I could have sworn there were some entries, although the ones I remember were boolean in nature, i.e. hasdriver=1; hasgunner=1;etc.

I have a simple workaround atm, but it'd be great for spawning manned tanks, etc. If anyone remembers Backoff's old OFP spawn group script, you'll have some idea how this might simplify things a lot.

Currently, I create 3 soldiers, have them moveInDriver, moveInGunner, moveInCommander. If vehicle soldier == soldier after that, I delete the soldier. Ugly, but it works.

Share this post


Link to post
Share on other sites

Yes, you should be able to check the positions with getNumber (hasGunner, hasDriver, hasCommander)... 0 means no such position, 1 means there is a driver/...

Share this post


Link to post
Share on other sites

Ah, another command. No wonder. Well, I figured there might be something for bool or number out there. I'm grateful for the flexibility of ArmA, but the sheer size of the commands list is somewhat intimidating even to one who was used to OFP's. Finding something to suit a need is a little more difficult even with search on the Wiki.

Thanks!

Share this post


Link to post
Share on other sites

But note that hasGunner for ex. is defined for every turret not the whole vehicle like in old good OFP smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×