YesNoOk
avatar

Spawn Helper after 100 tick (Read 4691 times)

Started by daraku, January 19, 2018, 11:00:32 am
Share this topic:
Spawn Helper after 100 tick
New #1  January 19, 2018, 11:00:32 am
  • **
I would spawn an helper after about 100 tick from the player animation. I tried creating another helper that checking the time...but it makes much complex all the move, cause inside the helper code there are some var that don't trigger anymore. I tried to put the helper in negative status...but it don't work. I tried even with Gametime trigger, never used this one, but it don't work too  :???:

Any suggestment?
Last Edit: January 21, 2018, 10:19:56 am by daraku
Re: Spawn Helper after 100 tick
#2  January 20, 2018, 12:02:05 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
I would spawn an helper after about 100 tick from the player animation. I tried creating another helper that checking the time...but it makes much complex all the move, cause inside the helper code there are some var that don't trigger anymore. I tried to put the helper in negative status...but it don't work. I tried even with Gametime trigger, never used this one, but it don't work too  :???:

Any suggestment?

Unsure exactly what you are asking.  I'm going to guess...

In the helper state:

Code:
trigger1 = parent,StateNo = 1234
trigger1 = parent,Time = 100


If I'm wrong about what you are asking maybe this will help instead.

1. The Player does a move.  You keep GameTime as a Var

Code:
[State 210, Get GameTime]
type = VarSet
trigger1 = anim = 210
var(20) = GameTime
persistent = 0

2. A Helper is created 100 ticks later from State -2

Code:
[State -2, Create Helper]
type = Helper
trigger1 = GameTime = var(20) + 100
id = 1234
stateno = 1234

Last Edit: January 20, 2018, 12:06:02 am by altoiddealer
Re: Spawn Helper after 100 tick
#3  January 20, 2018, 02:59:39 pm
  • **
Don't work man! I'll try  helper inside helper....and change the trigger of descendent helpers with rootdist instead of Parentdist
Re: Spawn Helper after 100 tick
#4  January 20, 2018, 04:38:41 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Well, you never mentioned distance