Jump to content
Sign in to follow this  
Madin

Getting a Special power weapon to 'reload' at an airfield

Recommended Posts

I have an aircraft that reloads at an airfield, that has a 'SpecialPowerDispatchSpecialPower', 'WeaponFireSpecialAbilityUpdate' (similar to the GDI Orca). This ability is unlocked via an 'OBJECT' upgrade.

I would like for this ability to simulate reloading at an airfield (because the ability is a targeted bomb), rather then having a standard reload that occurs immediately after the ability is used (and the aircraft is still in the air).

Can anyone think of a way of doing this?

Share this post


Link to post

My first idea would be using a object upgrade as GameDepency for the abillity (with a very short reload timer) and then use LUA & ModelConditionEvents to remove the upgrade during USING_SPECIAL_ABILITY and grant it again during LOCOMOTOR_TAXIING (aka "landed on an airfield").

  • Upvote 1

Share this post


Link to post
2 hours ago, Stygs said:

My first idea would be using a object upgrade as GameDepency for the ability (with a very short reload timer) and then use LUA & ModelConditionEvents to remove the upgrade during USING_SPECIAL_ABILITY and grant it again during LOCOMOTOR_TAXIING (aka "landed on an airfield").

I will give this a go!

Seems to work good so far! thanks!

Edited by Madin

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×