Firing multiple OCL's with delay |
Firing multiple OCL's with delay |
22 Sep 2019, 12:18
Post
#1
|
|
Group: Members Posts: 7 Joined: 16 July 2017 Member No.: 15609 |
I'm trying to figure out how to extend the running time of the Goliath System ability from ROTR. I understand how the ability functions :
1) The OCL is triggered by using the USING_ABILITY status and firing the GoliathInvulnerabilityWeapon here : CODE Behavior = FireWeaponCollide ModuleTag_GoliathUpgrade02 CollideWeapon = GoliathInvulnerabilityWeapon RequiredStatus = USING_ABILITY End The OCL that is triggered when firing the weapon creates objects such as the flares and missile lock breaking objects, on top of making the aircraft itself invulnerable. The OCL : CODE ObjectCreationList OCL_ActivateGoliathActiveDefenceSystem CreateObject ObjectNames = RussianGoliathActiveDefenceFlareLauncherObject Disposition = LIKE_EXISTING End CreateObject Offset = X:0 Y:0 Z:0 ObjectNames = RussianGoliathActiveDefenceMissileLockBreakerObject IgnorePrimaryObstacle = Yes Disposition = LIKE_EXISTING Count = 4 RequiresLivePlayer = Yes End End What I want to do is to fire this OCL multiple times with a 4 second delay each (the original ability was only supposed to last 4 seconds). I can already make the plane itself invulnerable for as long as I wish, as that part is in the GoliathInvulnerabilityWeapon itself. However I also want the flares to pop off every 4 seconds so it doesn't look so ridiculous when the plane is invulnerable. The problem I am having is how to fire this OCL off multiple times with a set interval. I've tried looking for other OCL's with delays but the only ones I've found are stuff for transport code. Could anyone help me out here? |
|
|
Lo-Fi Version | Time is now: 16 June 2024 - 13:59 |