Jump to content
  • 0

Why doesn't my code work?


Gianluco

Question

I've literally copied an actor's code and pasted on another actor, but it says that it expects a "{" instead of "ACTOR" and, when I try doing what it says, it says that "}" doesn't have any animation frames

Immagine 2022-04-04 213006.png

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 3
23 hours ago, rouge_means_red said:

In the machinegun part you have one { and two } }

 

@Gianluco Your answer is here already. If you don't understand, you need to change the MachineGun actor code to this:

ACTOR MachineGun : Chaingun replaces Chaingun
{
	Inventory.PickupMessage "You got the machine gun!"
	Obituary "%o was mowed down by %k's machine gun."
	Tag "Machinegun"
}

A "{" or opening bracket signifies a starting block of code. Each "{" should have a "}" or a closing bracket at the end to signify that block is closed. You had one opening bracket, then two closing brackets.

Edited by Barry Burton

Share this post


Link to post
  • 2

looks like it's missing a parenthesie in the previous script, so if the engine is trying to read it; then that's why it might crash on the next script: ArmoredCaco.

Share this post


Link to post
  • 0

cant really help you but I can bump your thread

 

is it chaingun replaces chaingun idk im not a decorate wiz

Edited by gwain

Share this post


Link to post
  • 0
1 minute ago, gwain said:

cant really help you but I can bump your thread

 

is it chaingun replaces chaingun im not a decorate wiz

The problem is, that one part of the file worked, but now that I've added the ArmoredCaco it dies

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
Answer this question...

×   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...