How do I start an ACS script from Decorate?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
How do I start an ACS script from Decorate?
How do I start an ACS script from Decorate? Can it be done with ACS_Execute? Cause I tried and it didn't work D= ...
- chopkinsca
- Posts: 1325
- Joined: Thu Dec 11, 2003 5:03 pm
Re: How do I start an ACS script from Decorate?
It should work. Post your code?lukas wrote:How do I start an ACS script from Decorate? Can it be done with ACS_Execute? Cause I tried and it didn't work D= ...
Re: How do I start an ACS script from Decorate?
Code: Select all
actor SomeItemOrAnother : PowerupGiver
{
blablabla
states
{
Spawn:
TNT1 A 5
loop
Pickup:
TNT1 A 5 ACS_Execute(50,0)
stop
}
}
Re: How do I start an ACS script from Decorate?
Maybe it has something to do with the ACS code =S ?
Its for skulltag multiplayer, so maybe Fade is not working for right player...
Code: Select all
script 50 (void)
{
faderange (255, 255, 255,1, 0, 0, 0, 0, 3.0);
}
Re: How do I start an ACS script from Decorate?
Code: Select all
actor SomeItemOrAnother : PowerupGiver
{
blablabla
states
{
Spawn:
TNT1 A 5
loop
Pickup:
TNT1 A 5 faderange (255, 255, 255,1, 0, 0, 0, 0, 3.0) // I wonder if this would work?
//TNT1 A 5 ACS_Execute(50,0)
stop
}
}
- chopkinsca
- Posts: 1325
- Joined: Thu Dec 11, 2003 5:03 pm
Re: How do I start an ACS script from Decorate?
The monster is the activator so I assume it changes the fade for the monster, which does nothing.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: How do I start an ACS script from Decorate?
This will not work. Pickup states are only for [wiki=Classes:CustomInventory]CustomInventory[/wiki].lukas wrote:Code: Select all
: PowerupGiver
Code: Select all
Pickup:
Re: How do I start an ACS script from Decorate?
Cjk10000, thanks I havent thought of that and will try it
chopkinsca, what do you mean monster =/ There is no monster involved.
NeuralStunner, D= then I will have to make a new CustomInventory actor that in its pickup state executes ACS and gives this other PowerupGiver item. So complicated...
Well thanks anyway for replies. I'll try what Stunner and Cjk say and see if it will work.
chopkinsca, what do you mean monster =/ There is no monster involved.
NeuralStunner, D= then I will have to make a new CustomInventory actor that in its pickup state executes ACS and gives this other PowerupGiver item. So complicated...
Well thanks anyway for replies. I'll try what Stunner and Cjk say and see if it will work.
Re: How do I start an ACS script from Decorate?
No.Cjk10000 wrote:See coded out part above... I wonder if that can be called?
Only [wiki]action functions[/wiki] (aka codepointers) and [wiki]action specials[/wiki] can be called from DECORATE states. [wiki=Built-in ACS functions]ACS functions[/wiki] cannot.
Re: How do I start an ACS script from Decorate?
Tried this, doesnt work =(.then I will have to make a new CustomInventory actor that in its pickup state executes ACS and gives this other PowerupGiver item. So complicated..
And tried what Cjk10000, but as Gez said - no luck...
- InsanityBringer
- Posts: 3392
- Joined: Thu Jul 05, 2007 4:53 pm
- Location: opening the forbidden box
Re: How do I start an ACS script from Decorate?
the monster is actually just the generic actor. the generic actor is the caller of the script, not the player. Since faderange affects the caller's screen, this doesn't work because not only does the caller not have a screen, it's also not the player.lukas wrote:chopkinsca, what do you mean monster =/ There is no monster involved.
To fix this, use an ACS script to assign the player a TID, and then use [wiki]SetActivator[/wiki] in your script to that tid
EDIT I NEED TO GO BACK TO LIT CLASS
Last edited by InsanityBringer on Sun Oct 03, 2010 9:24 am, edited 1 time in total.
Re: How do I start an ACS script from Decorate?
The caller of a CustomInventory's pickup/use/drop states is the player, or whatever else is picking it up, using it, or dropping it.
- InsanityBringer
- Posts: 3392
- Joined: Thu Jul 05, 2007 4:53 pm
- Location: opening the forbidden box
Re: How do I start an ACS script from Decorate?
oh.. I'm an idiot with no reading comprehension, sorry
- chopkinsca
- Posts: 1325
- Joined: Thu Dec 11, 2003 5:03 pm
Re: How do I start an ACS script from Decorate?
I was tired. When I heard decorate I assumed it was a monster actor. I'm also blind apparently.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: How do I start an ACS script from Decorate?
Yes. And if you think that's overly complicated, Decorate is not for you.lukas wrote:NeuralStunner, D= then I will have to make a new CustomInventory actor that in its pickup state executes ACS and gives this other PowerupGiver item. So complicated...
