[Added] WorldLine(Pre)Activated: Retrieve means of Activation

Moderator: Developers

WorldLine(Pre)Activated: Retrieve means of Activation

Postby XxMiltenXx » Fri Apr 13, 2018 5:40 pm

For the events WorldLineActivated and WorldLinePreActivated I think it would be useful to be able to check how the line was activated (e.g. by bumping, using, projectile impact etc.), so you can check against it.

Would be useful if a line has multiple activation flags, so you can let it do different things depending on how the line was activated.

Unless this is already possible? I checked the Line struct but I couldn't find anything redarging this (only the activation flags themself, which doesn't help me there)
XxMiltenXx
 
Joined: 08 Jan 2014

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby Major Cooke » Fri Apr 13, 2018 5:41 pm

That actually sounds like a good idea. I agree.
User avatar
Major Cooke
Slaughterer of Sewers
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby _mental_ » Sat Apr 14, 2018 4:48 am

Added in ba4cc1a.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby XxMiltenXx » Sat Apr 14, 2018 5:32 am

Great, thank you!

I think in addition to this an enum definition for all the activation types should be added. At least I couldn't find one.
XxMiltenXx
 
Joined: 08 Jan 2014

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby _mental_ » Sat Apr 14, 2018 5:59 am

On ZScript side activation types enum is here.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby XxMiltenXx » Sat Apr 14, 2018 6:21 am

Thank you.

I assume "player pushes" is "bumping?" That is why I couldn't find it then.
XxMiltenXx
 
Joined: 08 Jan 2014

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Postby Marisa Kirisame » Sat Apr 14, 2018 2:03 pm

Heh, I really should have added this from the beginning.
User avatar
Marisa Kirisame
ZScript Magician
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest