(3DRad)How to make a FPS game

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,720
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 18, 2010

EASY tutorial for how to make a First Person Shooter Game!
Script:

//This script keeps a SkinMesh object locked
//at a given offset from the camera.

//This technique can be used in a FPS game, to
//render view-locked 3d props, like a carried gun.

//Link this script object to the CamChase object
//and the SkinMesh object.

//Do NOT link the CamChase and the SkinMesh in the Object List!

//In this script, make sure that:
// OBJ_0 is the CamChase object
// OBJ_3 is the SkinMesh object

Quaternion DeltaOrientation;
Vector3 DeltaLocation;
void Main()
{
Quaternion cameraOrientation;
Vector3 cameraLocation;
Quaternion orientation;
Vector3 location;
if (iInitializing())
{ //Set locked SkinMesh orientation (camera relative) iQuaternionFromEulerAngles(DeltaOrientation,0,0,0,"xyz"); //Set locked SkinMesh location (camera relative) DeltaLocation = Vector3(1,-0.3,1);
}
iObjectOrientation(OBJ_0,cameraOrientation);
iObjectLocation(OBJ_0,cameraLocation);
Quaternion objectOrientation;
Vector3 objectLocation;
iQuaternionMultiply(objectOrientation,DeltaOrientation,cameraOrientation);
iVectorRotate(objectLocation,DeltaLocation,cameraOrientation);
objectLocation += cameraLocation;
iObjectOrientationSet(OBJ_3,objectOrientation);
iObjectLocationSet(OBJ_3,objectLocation);
}

Category:

Gaming

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (3DRadHelp)

  • GLLAAGHHH HOW DO I MAKE A FU**ING GUN AND MAKE IT A MODEL AND WHERES THE FU**ING SCRIPT >:( YOU FAIL

  • @jaykombatpsn the script is in the description box. The guns you can make or download in google sketchup and then export them to 3DRad

  • After i changed the script it worked fine, but after i changed the angle the gun was only visible for like half a second...

  • @MultiFailgames when that happens redo the script object

  • to a GUNMODEL make or get a gun model from Google Sketchup or somewhere else and add it to 3DRad as a skinmesh

see all

All Comments (61)

Sign In or Sign Up now to post a comment!
  • How do I make the gun follow the camra, like urs and not be a wheel? When i move, it spins, and when i turn the mouse/camra, the gun stays where it is... Can you please help?

  • 3DRAD FAILS. Go Unity

  • rapid response please: because I get the gun

  • please help. I need to know the exact instructions. How do I make the gun object 3? How do I make the camera object o? I am new to this and I know nothing about scripting.

  • Hey, if anyone wants some cool guns, search the sketchup 3d warehouse, and then search mojomodels. Feel free to use any of the guns I've made!

  • how do I get the gun?

  • If u want a gun model, go to 3dwarehouse and get 1, then instal the direct x plugin for sketchup and then export :/

  • THE gun rolls with the damn 1st person camera but it will be awsome when i figure it out

  • @mrdetour2 NVM, fixed it

  • My gun disappears the second I start the game. How do I stop this?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more