ULX

Author Topic: OnRemove effects  (Read 1746 times)

0 Members and 1 Guest are viewing this topic.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
OnRemove effects
« on: November 05, 2013, 04:33:26 AM »
How would I apply an effect to a prop that is being removed? For example the combine ball dissolve effect. (When a combine ball disintegrates some thing.)
« Last Edit: November 05, 2013, 01:22:23 PM by HeLLFox_15 »
I cry every time I see that I am not a respected member of this community.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: OnRemove effects
« Reply #1 on: November 05, 2013, 02:55:23 PM »
Total guess here - Grab the current prop's coords using the onremove, pass an effect function the coords, return from onremove, have function perform effect at the coords?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: OnRemove effects
« Reply #2 on: November 05, 2013, 05:00:30 PM »
You have to find the name of the effect, which I don't remember off hand. It's a pretty straight forward function past that, though.
Experiencing God's grace one day at a time.