Game Development Community

Three questions

by Sam M · in Torque Game Engine · 07/15/2005 (4:25 pm) · 2 replies

I figured it'd be better to make one post with all of my troubles than to bump a couple three year old threads.

1. The car with weapon mounts mod ( http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2601 ), i put it in the starter.racing folder and the car shows up and runs, however the car doesn't shoot. I know someone else had this problem and it kinda defeats the purpose of the whole resource. The resource was made a few years back so it could be a scipt of engine problem but i don't know.

2. The advanced camera mod ( http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471 ), I got everything else in except for the last bit where it says Script API, and i'm not to sure where to stick that. I'm asumming i have to make a call to a particular camera because when i run it without that last part the camera is static.

3. This one is gonna take a bit of explaining. Basically, in client\scripts\default.bind.cs the zoom function has a variable $ZoomOn which is true or false depending if the zoom is on. I have a server side if statement that needs to check this variable. However it's my understanding that there needs to be some special script that alows the server side to get information like this from the client. I played around with the Sharing player data between server and client code ( http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2657 ), but i'm wondering if there's a specific way to do this.

Okay this is the part where i beg for someone to help me with my annyoying noobish questions. But sarcasm aside, i would really appreciate any help i can get, thanks.

#1
07/15/2005 (5:16 pm)
@1 Most likely too outdated for you to use at this time, you will need to learn more about the differences in the version is was written for, and the current version. Good Luck! I would try to learn about the current engine and write the mod myself, using the old one as a template.

@2 Advanced Camera mod is being reworked and updated to work better, w/more features, according to the current scuttlebutt, stay tuned!

@3
CommandToClient('ZoomOn');
ClientCmdZoomOn(){
      CommandToServer('ZoomState',$ZoomOn);
}
ServerCmdZoomState(%client,%Zoom){
      %Zoom = detag(%Zoom);
      If(%Zoom $="ON"){
          //Zoom is ON do whatever
     }else{
        //Zoom is not ON, do whatever
    }

Hope that helps!
#2
07/15/2005 (5:28 pm)
Cool, i'll try that out thanks. but until the new adv. camera comes out does anyone know how i should get the current one working?