Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Getting Started

FPSDemo  [SOLVED]

You feel lost? You don't understand how to use ShiVa?

FPSDemo

Postby mikeyrobbo78 » 20 Aug 2012, 22:30

Hello I am quite new to Shiva 3d and I am using the FPSDemo game. I am tryin to swap out the alien gun that comes with it for my own gun (it's a G36C I created in Blender it is exactly the same size as the alien gun (Weapon0B) I have checked and the gun has no ai controller so I don't see the problem I have changed anything about the bullet (Weapon0Bullet) when I load the game it isn't there and when I click to fire the bullet doesn't appear either.
mikeyrobbo78
Fresh Boarder
Fresh Boarder
 
Posts: 9

Re: FPSDemo

Postby mikeyrobbo78 » 20 Aug 2012, 22:30

Help will be appreciated.

Thank You,
mikeyrobbo78
Fresh Boarder
Fresh Boarder
 
Posts: 9

Re: FPSDemo  [SOLVED]

Postby Selzier » 20 Aug 2012, 22:46

In the AI Model, "FPSCamera", you need to call this.sendEvent ( "onWeaponChange", "YOUR_MODEL_NAME" )

YOUR_MODEL_NAME also needs to be included in the "Models" section of the Game Editor, so the model is available to your game at run time.

Also, you may need to adjust the weapons position to the camera, so take a look at the AI Model "FPSCamera" And the function "updateWeapon" to position the gun in front of the camera.
Selzier
Platinum Boarder
Platinum Boarder
 
Posts: 517
Location: Boise

Re: FPSDemo

Postby mikeyrobbo78 » 20 Aug 2012, 22:58

Thanks a lot
mikeyrobbo78
Fresh Boarder
Fresh Boarder
 
Posts: 9

Re: FPSDemo

Postby mikeyrobbo78 » 20 Aug 2012, 23:07

Hi I have tried this but it still isn't showing.
mikeyrobbo78
Fresh Boarder
Fresh Boarder
 
Posts: 9


Return to Getting Started

cron