Scripts / Trigger a decal

Author
Message
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 10th May 2019 18:11
Please forgive me if this has been asked and answered already. What I am trying to do is have one or more of the explosion decals trigger in the distance (to simulate incoming artillery fire for example) but I can't seem to do it. Either the decal flashes so fast you don't really see it or it becomes visible and just runs its continuous loop.
The scripts from this post https://forum.game-guru.com/thread/216392#msg2559538 are as close as I can get to what I want but I was wondering if there is a way to improve on it.
If I remember correctly in FPSC I was able to come up with a script that triggered the explosion decal with just a key press. The animation appropriately played once, then stopped yet it responded each time the key was pressed. I added the explosion sound and it looked /worked great!. Is this possible in Game Guru? Any help would be much appreciated!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 10th May 2019 19:40
You could use particles for this.
Been there, done that, got all the T-Shirts!
PM
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 11th May 2019 00:28
Okay. Is this where I should start reading? https://forum.game-guru.com/thread/220140. I admit it seems a little overwhelming but it looks fantastic and I would love to use this to achieve my goal.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 11th May 2019 00:44
That's a good start, you could also look at GraPhiX's particle related threads, which deal with explosions no less.
Been there, done that, got all the T-Shirts!
PM
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 11th May 2019 00:51
Thanks for your fast reply! I will be coming back here and asking for help I'm sure.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th May 2019 09:30
If you're using the stock explosion you could set the health to 0 for any item right after you spawn them, then they'll automatically explode right away.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 12th May 2019 17:04
Thanks smallg. I am going to try that as well.
PM
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 13th May 2019 16:22 Edited at: 13th May 2019 16:31
Smallg, I couldn't get that to work. Tried with the barrels set to strength at varies numbers (it says 0 indicates invulnerability) and explodable to yes but nothing happens when spawned.
PM
Bolt Action Gaming
GameGuru Tool Maker
10
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 13th May 2019 19:23
Or if you're really really lazy you could just 'show' the decal, use a timer, and then hide it again.
Just saying
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 13th May 2019 20:55
Hmmm. I'll have to give that a try too. Thanks!
PM

Login to post a reply

Server time is: 2024-04-20 07:40:52
Your offset time is: 2024-04-20 07:40:52