News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 27th Sep 2001, 08:40 PM   #1
djthretz
Registered User
 
Join Date: Sep. 27th, 2001
Location: Denver
Posts: 3
Talking Im new ........ WTF!

Ok this is a hard quetion.... maybe. How do i use the Exec commands to give a custom gun a custom skin. i see like load file models\redplasma.pcx. How does that work? why does it use the thing models\ and how does it know which UTX file the texture comes from........... OK WHATEVER UNREAL ED! YOU ARE A DUMB THING UNREAL ED... heh........sorry. Please someone reply back AND HELP ME! heh

Thretz
djthretz is offline   Reply With Quote
Old 8th Oct 2001, 09:20 AM   #2
Papapishu
我是康
 
Papapishu's Avatar
 
Join Date: Jun. 18th, 2001
Location: void
Posts: 2,043
This is the code for importing a mesh and the appropriate texture

Code:
#exec MESH IMPORT MESH=railgun_pickup ANIVFILE=MODELS\railgun_pickup_a.3d DATAFILE=MODELS\railgun_pickup_d.3d X=0 Y=0 Z=0 unmirror=1 //Importing the model
#exec MESH ORIGIN MESH=railgun_pickup X=0 Y=0 Z=-15 //Setting its position

#exec MESH SEQUENCE MESH=railgun_pickup SEQ=All STARTFRAME=0 NUMFRAMES=30  //Animation sequences

#exec MESHMAP NEW MESHMAP=railgun_pickup MESH=railgun_pickup //Defining name of meshmap (texture mapping coordinates)
#exec MESHMAP SCALE MESHMAP=railgun_pickup X=0.1 Y=0.1 Z=0.2  //Scale the meshmap

#exec TEXTURE IMPORT NAME=RailSkin FILE=textures\RailSkin.pcx GROUP=Skins FLAGS=2  //Import a pcx-file and give it a name
#exec MESHMAP SETTEXTURE MESHMAP=railgun_pickup NUM=1 TEXTURE=RailSkin  //Assign the texture to the model using the meshmap
The MODEL/... thing its the MODEl directory from the "root" of your project directory, you might use something else if you want to.
I often use TEXTURES/

This is the way to load a texture from a pcx file.
If you want to load a .utx file you do like this:

#exec OBJ LOAD FILE=..\Textures\SkyCity.utx

For instance.
Then you can ready to use the textures from the utx-file
This is used mostly if you have an external package that isnt opened by deafult when you start a game (most packages...)

Hope that helps
Papapishu is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer