Jump to content

Realm667 powercube decorate doesn't work?


Recommended Posts

I downloaded the powercube decorate off of Realm667 website. The problem is Im trying to create a scenario were you need two powercubes to activate a single door.

Here is what I created in script:

int powercube;
Script 2 (void)
{
 powercube++;
 switch (powercube)
{
 Case 1:
 print (s:"There is one more remaining!");
 Break;
 Case 2:
 print (s:"Sequence has finished and the Slipgate has activated!");
 Delay(60);
 Thing_Activate(40);
 FloorAndCeiling_RaiseByValue(110,32,160);
 Delay(60);
 ambientsound("amb65",127);
 }
}

 

The script works but the powercube does not display any animation or sound when executed?

I attatched a demo map for any further help.

Testing.zip

Share this post


Link to post

This code doesn't look correct. I'll look into the ACS later.

ACTOR PowerCubeHolder : PowerCubeHolderBase 15000
{
  States
  {
  Spawn:
    PWCB B -1
    Stop
  Active:
    PWCB D 2 Bright Light("PowerCubeHolder") A_PlaySound ("Cubeholder/On")
    PWCB EFGDEFGDEFG 3 Bright Light("PowerCubeHolder")
    Loop
  }
}

 

Share this post


Link to post

as far as i remember, using puzzle item won't autoactivate accepting thing. you need to manually activate it from ACS, i.e. use `Thing_Activate(0);` (if i remember right, tid 0 is activator object). then cube holder should start animation.

Edited by ketmar

Share this post


Link to post

Thanks as always ketmar. Tweaked the script a little bit and used the `Thing_Activate(0);` method. I originally wanted two powercubes to activate a door, instead I opted to use just one. Little more simpler and less confusing scenario.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...