criskegler Posted August 20, 2017 Posted August 20, 2017 It's my first day with T3D and i'm tryng to make a command to set a "flare"(PArticleEmitterNode) active using the trigger notepad. I have been reading the manual for hours and i cant figure out how to use "void ParticleEmitterNode::setActive(bool active)". Sorry for bad english.. Quote
Duion Posted August 20, 2017 Posted August 20, 2017 I would just create the particle on trigger and then delete it again.Here is some example code I once usede to create blood spatter effect on player hit: %particles = new ParticleEmitterNode() { position = %position; rotation = "1 0 0 0"; scale = "1 1 1"; dataBlock = "SmokeEmitterNode"; emitter = "bloodBulletDirtSprayEmitter"; velocity = "1"; }; MissionCleanup.add(%particles); %particles.schedule(1000, "delete"); It is created on player damage, but you can just move it into your trigger function and then it is deleted after 1 second, works fine. You may have to add location data where you want it to appear, since in my case the location is automatically set to where it hits the player. Of course you need to set the dataBlock and emitter to use your existint particle datablocks. Quote
criskegler Posted August 20, 2017 Author Posted August 20, 2017 [mention]Duion[/mention]Thanks for the help!! :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.