Skylines Actions system and presets are the core to your projects dynamic objects. Many Actions can be used in interesting combinations for varying effects, but some times you need help to get the most out of them.

Control Particles in a Preset

Control Particles in a Preset

Postby Shando » 08 Oct 2017, 00:39

Hi All,

Just a quick question....

How do I turn on/off a SkyParticle that is part of a Preset?

I know that there is this command:
Code: Select all
particle.setEmitting ( particleFX_hnd, 1 )


but it needs the handle of the Particle, which is the bit I'm not sure how to get when not spawning the Particle in.

Thanks in advance

Shando

[edit] Is it something like this?
Code: Select all
entity.paramValue ( objID, "SP Enabled", 0 )
Alienware 17 (i7-4700MQ 2.4GHz 16GB GTX770M Win 10 64)

Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 476
Joined: 06 Mar 2013, 22:35
Location: Kings Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Control Particles in a Preset

Postby SolarPortal » 08 Oct 2017, 12:50

i would imagine that you would just set the tag of the particle and retrieve that... but there appears to be no command that can get the id of a particle that belongs to an action which would make it quite awkward to control dynamically.

We will have to look into this one and get back to you :)
Conceive, Quantify & Do!
Skyline Game Engine - Lead Developer.
Please provide as much information as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 3770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3071
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Actions n Presets

Who is online

Users browsing this forum: No registered users and 1 guest

cron