Data Realms Fan Forums http://45.55.195.193/ |
|
What can I add scripts to? http://45.55.195.193/viewtopic.php?f=73&t=20029 |
Page 1 of 1 |
Author: | Roast Veg [ Mon Oct 25, 2010 3:33 pm ] |
Post subject: | What can I add scripts to? |
As title, basically. I need a list of everything I can add a ScriptPath line to in it's .ini Well, I don't need it, but would sure be useful. |
Author: | findude [ Mon Oct 25, 2010 3:36 pm ] |
Post subject: | Re: What can I add scripts to? |
I don't think there's much of restriction, anything that's a child class of MovableObject should do. But the script wont run unless the object is moving freely on it's own, and not an attachable to anything. |
Author: | Roast Veg [ Mon Oct 25, 2010 3:41 pm ] |
Post subject: | Re: What can I add scripts to? |
Oh-ho that is interesting. Seems like it's pretty unrestricted if that's the case. |
Author: | CaveCricket48 [ Mon Oct 25, 2010 4:15 pm ] |
Post subject: | Re: What can I add scripts to? |
Though, scripts attached to objects that are attached to objects won't run. For example, if you attach a script to a gun and an actor is holding the gun, the script on the gun won't run. You can't have TOO much freedom, right? |
Author: | Roast Veg [ Mon Oct 25, 2010 4:45 pm ] |
Post subject: | Re: What can I add scripts to? |
...but the script will work so long as no-one is holding the gun, right? If so then I get it. |
Author: | CaveCricket48 [ Mon Oct 25, 2010 8:25 pm ] |
Post subject: | Re: What can I add scripts to? |
Roast Veg wrote: ...but the script will work so long as no-one is holding the gun, right? Yep. |
Author: | mail2345 [ Tue Oct 26, 2010 4:18 am ] |
Post subject: | Re: What can I add scripts to? |
To get around that, slap an emitter that emits particles with the code. This tip only applies for held weapons and other attachable. |
Author: | Azukki [ Tue Oct 26, 2010 5:59 am ] |
Post subject: | Re: What can I add scripts to? |
An exception to the general rule: Magazines. Scripts don't work on magazines, not even when they've been detached from the gun, ie, dropped. You can slap an emitter on one, causing it to gib when detached into something that can have a script, though. |
Author: | Abdul Alhazred [ Tue Oct 26, 2010 2:59 pm ] |
Post subject: | Re: What can I add scripts to? |
Azukki wrote: An exception to the general rule: Magazines. Scripts don't work on magazines, not even when they've been detached from the gun, ie, dropped. Code: if not ToMagazine then ToMagazine = ToMOSRotating end |
Author: | Azukki [ Tue Oct 26, 2010 9:53 pm ] |
Post subject: | Re: What can I add scripts to? |
So that makes detached magazines in the scene become (or be treated like) MOSRotatings? |
Author: | mail2345 [ Wed Oct 27, 2010 7:51 am ] |
Post subject: | Re: What can I add scripts to? |
The ToWhatever functions are called on the creation of all objects with Lua. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |