Scripting in MOHRadiant... Possible?
Moderator: Moderators
-
ghsthunter23
- Private
- Posts: 7
- Joined: Thu Apr 07, 2005 1:56 am
- Location: Jo mama
Scripting in MOHRadiant... Possible?
ok is scripting in MOHR possible or do u have to use a regular script?

- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:
But, using setthread in the bsp foreces you to keep the name of the methods you are calling in the scr file, if you ever change it, the bsp won't find the code to execute.Grassy wrote:AFIK it's NOT, for complex stuff... most use setthread keys to call a thread in the scr.
Grassy
Ideally, you set the targetname of an entity and use the script to set the thread to execute ($entity_targetname setthread thread_to_execute), more flexible imo, but it's a personnal choice.
What's in a name? The threads can be modified, just the name stays the same.. I don't have an issue with that.Deutsche Dogge wrote:But, using setthread in the bsp foreces you to keep the name of the methods you are calling in the scr file, if you ever change it, the bsp won't find the code to execute.Grassy wrote:AFIK it's NOT, for complex stuff... most use setthread keys to call a thread in the scr.
Grassy
An ambiguous question will get a similar answer...
- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:
Let's say you made a map a while ago and you decide to have a look at the script because you have time to waste, or for any reason, and find a method that is not called anywhere in the script, now you may saydamn, where did i used this code again? then it might take a while before you realize oh, yeah, i set the thread in the bsp file or even decide to open the .map to look for an answer.
This is why i prefer using code rather than hardcoding it.
This is why i prefer using code rather than hardcoding it.
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:

