You are not logged in.
Pages: 1
I'd like know how to insert a object in the game ,how spawn it in the game and how move it with "env_anim"....
Help me
I'm Italian and I'm 23. My nickname is .PixeL
Offline
What you are asking is complicated...
1) Read over this page: http://wiki.oni2.net/XML:ONLV
Objects are added by using the Physics.xml file.
2) Download the demo files.
Study the various xml files in the demo.
3) Look at the Lab's cutscene bsl file and see how the command is used.
4) Experiment... it will take trial and lots of errors to figure it out.
Sorry, I have not personally used that command before, so I can't be more specific.
Offline
I tried to study the command used in the warehouse to move the truck, but i didn't undestand everything.
thanks for your answer and for the link
Last edited by Michele (12/08/13 07:12)
I'm Italian and I'm 23. My nickname is .PixeL
Offline
Basically, to move the truck, there is the 3D model of the truck as M3GM, then an OBAN is used to animate the truck. To see the relationship between them, extract the file ONLVEnvWarehouse.oni as xml from level 1.
Then for example this info about the truckcab:
<OBOAObject>
<Geometry>#514</Geometry>
<Animation>OBANtruckcab</Animation>
<Particle>#516</Particle>
<Flags>InUse</Flags>
<DoorGunkId>32047</DoorGunkId>
<DoorId>0</DoorId>
<PhysicsType>Animated</PhysicsType>
<ScriptId>207</ScriptId>
<Position>404.6857 21.3906479 -90.60252</Position>
<Rotation>-0.334687442 0.622883856 0.6228838 -0.3346875</Rotation>
<Scale>0.99999994</Scale>
<Transform>-0.5519371 3.40699238E-08 -0.83388567 -0.83388567 2.98685165E-08 0.5519371 4.371139E-08 1 1.19248806E-08 404.6857 21.3806477 -90.60252</Transform>
<Name>object_truckcab</Name>
</OBOAObject>
This tells us the OBAN which is used: OBANtruckcab and the model name: object_truckcab, but you will find it in the level 1 files as M3GMtruckcab. If you extract the OBANtruckcab as dae, you can import it into XSI and see the movement path.
(Note: The truck is actually made up of a number of parts: M3GMtruckcab, M3GMtruckback, M3GMtruckwheel01, M3GMtruckwheel02, M3GMtruckwheel03, M3GMtruckwheel04, M3GMtruckwheel05. Each of them has their respective OBAN to animate them.)
To understand OBAN look over this page: http://wiki.oni2.net/XML:OBAN
Told you it was complicated
Offline
THANKS !!!
I'll manage to make this mod!
8) 8) 8) 8) 8) 8) 8)
I'm Italian and I'm 23. My nickname is .PixeL
Offline
Pages: 1