im having trouble with the code tutorial in the q4 sdk.
The simplest example; hello stroggos, will not work.
My console tells me that the trigger is trying to call an unkown fuction. i have tried altering the code, but still nothing!
In the sdk it says you dont need to use the void or parenthesis to call the function from the trigger..... but for some reason when i dont use "void hello stroggos" it gives me a script error, so im doing the opposite of what the sdk tutorial is telling me just to get the script to work. But the problem lies in the function.
void HelloStroggos(){
entity newMonster;
newMonster = sys.spawn("monster_tactical_railgun");
newMonster.setWorldOrigin($targetMonster.getWorldOrigin);
}
all i want to do is spawn a monster using a trigger, ive read the tutorial for hello stroggos a thousand times, i understand what this example means but the editor does'nt.
PLease somebody put me out of my misery and tell me what im doing wrong!
Ive done all the target_null i called it target monster, the console says;
the trigger_once_1 at (coordinates) is trying to call an unkown function,
the function is in the script right?
Even the sys.println("hellostroggos") will not work the console says the same, even when im not using a target_null.
so........?
PLEASE HELP!!!!
(anyone using the editor please try the tutorial and see if it works for you)
Is it me?, am i such a noob? q4 sdk problems
-
- Posts: 26
- Joined: Tue Mar 21, 2006 1:25 pm
-
- Posts: 2237
- Joined: Sat Mar 12, 2005 10:49 pm