Note: All of this is hypothesised, I am not a fluent JavaScript / C# programmer. Since this isn’t actually scripting, I wasn’t sure if it should be in the Scripting section, or the Game Design. However, for whatever reason I keep getting a error when trying to start a new thread in the Scripting section.
Is this possible?
I came over here from another game engine that used a very easy scripting language to function on, but in the backround was developed by the original languages code. Could essentially this be recreated in JScript / C#? I am sure it can, I am just wondering how exactly.
I think, just my thoughts rambling, you could develop one massive script in Java (or C#) and call all the functions in another script that would reduce the total time needed to program say, AI for example.
Example: (not actual code)
NewLanguage.js
function SetTargetDestination(gameObject, vector3(X,Y,Z)) {
// insert code that would take the gameobject that is sent to it frm another script, and the xyz cords and send the object to the xyz cords on a path according to the gameobjects set attribute: moveSpeed
}
SetDestination.js
@scriptinclude NewLanguage.js
var targetAI : gameObject;
var targetX : float = 0;
var targetY : float = 0;
var targetZ : float = 0;
function Start {
SetTargetDestination(targetAI.gameObject,targetX.float,targetY.float,targetZ.float)
}
Would this be possible? If so how exactly? Thank you for your time.