Data Realms Fan Forums
http://45.55.195.193/

A few questions on actors...
http://45.55.195.193/viewtopic.php?f=1&t=10734
Page 1 of 1

Author:  CaveCricket48 [ Sun Mar 23, 2008 11:49 pm ]
Post subject:  A few questions on actors...

From the title, Here is my list of questions about actors I would like to be answered:

1.If an actor is spawned from an emitter, is there a way to set what they do from their coding?

2.In the actor's code, there is something that says "Status = 0" What does the variable do?

3.The variable "AIMODE = 0", Can that also be used in an actor's coding? If so, where?

Author:  bbbzzz234 [ Mon Mar 24, 2008 1:44 am ]
Post subject:  Re: A few questions on actors...

1. no, not in anyway what so ever.

2. I have no idea

3. I'm not sure but I think it means if it is always controlled by the AI, or if it is controlable (0= controlable)

For future reference: You're better off answering modding questions when you actually know something about modding.

Author:  Grif [ Mon Mar 24, 2008 2:03 am ]
Post subject:  Re: A few questions on actors...

In other news, bbbbzzzz is wrong on...all counts.

Quote:
1.If an actor is spawned from an emitter, is there a way to set what they do from their coding?

2.In the actor's code, there is something that says "Status = 0" What does the variable do?

3.The variable "AIMODE = 0", Can that also be used in an actor's coding? If so, where?


1. Yes, AIMode. It will set them to the different AI behaviours you can toggle on the pie menu. (to answer no 3)

2. Status controls odd things. Some values seem to not change anything, one makes the actor dead on arrival, and others just do strange things.

Author:  CaveCricket48 [ Mon Mar 24, 2008 2:39 am ]
Post subject:  Re: A few questions on actors...

In the actor's code, where do place the AIMODE variable? And about the status variable: I set it on an ACrab for 3, and when it spawned from an emitter, its limbs where limp and didn't try to right itself. But when another ACrab came out with the same variable from the same emitter, it started walking around.

Author:  Grif [ Mon Mar 24, 2008 2:42 am ]
Post subject:  Re: A few questions on actors...

Variables can go just about anywhere in code. Order does not matter nearly as much as people think.

And, yeah. Status does stuff like that. It doesn't make much sense at all, so most people leave it alone.

I've seen it used in one mod, ever.

Author:  CaveCricket48 [ Mon Mar 24, 2008 2:56 am ]
Post subject:  Re: A few questions on actors...

Yay, it worked! I put the AIMODE variable set on 2 under the charheight variable, and as soon as the ACrabs spawned from their emitter, they started walking around. Also, why the heck are crab so horrible on terrain? thanks for the help Grif.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/