Data Realms Fan Forums
http://45.55.195.193/

Attachable that explodes on attaching?
http://45.55.195.193/viewtopic.php?f=73&t=45148
Page 1 of 1

Author:  Izak12 [ Sun Feb 24, 2013 6:16 am ]
Post subject:  Attachable that explodes on attaching?

how would you make an attachable that when it comes in contact with an actor is sticks to them for a few seconds and explodes?

I want it to explode....

Author:  CaveCricket48 [ Sun Feb 24, 2013 6:27 am ]
Post subject:  Re: Attachable that explodes on attaching?

Are you asking for an attachable that explodes when spawned? (since as soon as it's spawned its attached to its parent actor)

Or an attachable that is attached to the actor that, when it comes in contact with another actor, detaches from its original actor, attaches to the new actor, and then explodes?

Or something else? You're a bit vague here.

Author:  Arcalane [ Sun Feb 24, 2013 6:32 am ]
Post subject:  Re: Attachable that explodes on attaching?

I'm guessing a timed stickybomb of some description, either thrown or fired from some kind of launcher. I used a two-stage projectile for the one I made, though I imagine it could be done with a single-stage projectile as well with a decent script.

Author:  Izak12 [ Mon Feb 25, 2013 4:59 am ]
Post subject:  Re: Attachable that explodes on attaching?

CaveCricket48 wrote:
Are you asking for an attachable that explodes when spawned? (since as soon as it's spawned its attached to its parent actor)

Or an attachable that is attached to the actor that, when it comes in contact with another actor, detaches from its original actor, attaches to the new actor, and then explodes?

Or something else? You're a bit vague here.



ah sorry, I meant an attachable that is spawned as a stand alone object and sits there until it comes into contact with any actor within range and sticks to them and explodes.

Author:  Izak12 [ Mon Feb 25, 2013 5:00 am ]
Post subject:  Re: Attachable that explodes on attaching?

Arcalane wrote:
I'm guessing a timed stickybomb of some description, either thrown or fired from some kind of launcher. I used a two-stage projectile for the one I made, though I imagine it could be done with a single-stage projectile as well with a decent script.


yeah or this.

Basically I'm creating the T-virus. After I figure out this I'll replace "Explode" with "Kill original actor and spawn zombie in place".

Author:  CaveCricket48 [ Mon Feb 25, 2013 9:18 pm ]
Post subject:  Re: Attachable that explodes on attaching?

In that case you don't want to use an Attachable.

You could either use a wound emitter with a few tricks to make a sticky bomb, or a modification of the Coalition Remote-GL's sticky grenade script.

Author:  Arcalane [ Mon Feb 25, 2013 11:22 pm ]
Post subject:  Re: Attachable that explodes on attaching?

What I did was a double-stage AEmitter/MOSRotating. The first stage is thrown or launched and has a GibImpulseLimit of 1 so it breaks on the first thing it hits to gib into the second stage; the second stage has a script that makes it stick to whatever it just spawned next to, then explode a few seconds later.

Take in mind this is quite old, may be buggy, and will stick to anything it hits.


Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/