Scripts / two events from one trigger point. can I combine two scripts into a new one?

Author
Message
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 28th May 2015 20:57
Sorry if this is a real basic question, I'll give two examples of what I want to do.

for example to simulate a shell exploding on a building the player is in I can already use smallg's camera shake script and a sound......but I would also like to trigger a darkzone at the same time to give the effect of the power going off inside.

how would I combine the two into one new script?
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 3rd Jun 2015 23:37 Edited at: 3rd Jun 2015 23:38
Sorry, this was missed AceRimmer.

You need to copy/paste the lines of script that create the darkzone (all the fog and ambience lines) and place them after the lines of script that cause the explosion.

Having said that, it may not work the way you want because the darkness will happen almost immediately the explosions are triggered - which may even be what you want (your power outage?)

You will need to insert a timer if you want a delay for the darkness.

>> Please backup any scripts you intend to modify before attempting anything.
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 14th Jun 2015 19:46
Thanks! that was simpler than I thought. works a treat. Appreciate the help Sistermatic/!nullptr, it is perfect for what I wanted! (sorry for the late thank-you, been away a few days and just got to see it)

Login to post a reply

Server time is: 2024-05-03 05:47:28
Your offset time is: 2024-05-03 05:47:28