IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Firing multiple OCL's with delay
Salazar
post 22 Sep 2019, 12:18
Post #1



Group Icon

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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19 March 2024 - 12:54