Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- controller should have a spawn with whatever VZ respawn timer is.
- VZ should not have a spawn
- On spawn, the controller will have the loot that the final VZ needs.
- on spawn, he will spawn the first VZ.
- when VZ spawns he will read the loot on the controller and copy it (this is a bit advanced and not sure of an example, but code exists)
- when VZ spawns he will always signal to the controller that he spawned.
- the controller will respond to the "ispawned" signal with a signal letting VZ know which phase it is on.
- on all subsequent spawns of VZ, the controller also spawns the clones. no logic needed as it is an "Always"
- on death of VZ, VZ will spawn the PP (easier him instead of controller as the xyz loc is needed) and signals controller to despawn with timer.
- VZ psuedo code:
- on spawn
- signal controller i spawned!
- copy loot from controller
- end spawn
- on signal
- if signal = phase1 then
- set hp event to 75 or what ever first repop hp event is
- elseif signal = phase2 or signal = phase3 then
- set hp event to 50 or whatever
- elseif signal = phase4 then
- is anything needed here? i forgot event
- end if
- end signal
- on hp event
- signal controller with signal "depopping"
- depop
- end hp event
- on death
- spawn PP
- signal controller i deaded
- end
- controller psudeo code
- on spawn
- set local phase counter variable = 1
- spawn VZ
- end spawn
- on signal
- if signal - ispawned then
- signal phase counter to VZ
- elseif signal = depopping then
- phase counter += 1
- spawn VZ
- spawn clones
- elseif signal = deaded then
- depop self with timer
- end
- end signal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement