Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Strange Aces questions pack.
Strange Aces questions pack.
2003-09-05, 9:54 PM #1
Due i making level and i dont like to spam your forum, i post this - here i will asc if i will need something.
First one.
1) How to set 3do's mat cell?

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-09-06, 12:54 AM #2
Hi there [http://forums.massassi.net/html/smile.gif]

After having just posted on the "Moving Crates" topic (rather grouchily), I will now answer your question lol [http://forums.massassi.net/html/wink.gif]

Code:
##
# MOTS COG Script File
#
# 00_floor_num.cog
#
# This sets the wall cel of a particular surface
# to a specific number.
#
# Best used with "numbers.mat" material, to set floor levels.
#
#
# This COG script is NOT supported by LucasArts or LEC.
#
# Permission is granted to use this script by the author, as long as credit
# is provided in the readme file for any add-on levels that use this script.
#
#
# E-mail: lucky_jackpot@hotmail.com
# [RJS]
#
##
SYMBOLS

message startup
surface num_surf
int num     // First wall cell # = 0, 2nd = 1... etc

END

# ========================================================================================
# ========================================================================================
# ========================================================================================

CODE

startup:
    SetWallCel (num_surf, num);
    return;
END


This will set the wall cell number to the one you desire. Remember that the first cell is 0.

Hope this helps [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... [http://forums.massassi.net/html/wink.gif]

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)

[This message has been edited by lucky_jackpot (edited September 06, 2003).]
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-09-06, 2:49 AM #3
Ehm, Jackpot that sets the cell of a surface of a sector, not of a 3do like Ace asked...

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2003-09-06, 2:52 AM #4
You'll probably have to use this verb:

SetMaterialCel();

Sets the material cel of a multi-celled material. This directly affects all objects which use the material. SetMaterialCel() has no affect on surfaces that have a cel value other than -1. Syntax:
SetMaterialCel(mat, cel_num);

But like it says it'll set it for ALL surfaces with that mat.

If you want it animated I'd be easier to use:

MaterialAnim();

Animates a material directly instead of animating a surface which uses the material. The Material Animation will not affect surfaces that have a cel value other than -1. Syntax:
animID=MaterialAnim(mat, CPS, flags);

mat: This is the multi-celled material.

CPS: Cels per second. This is the number of cels to cycle through each second.

flags: These are the Surface Animation Flags to use with the animation.


------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2003-09-06, 5:20 AM #5
Shoot - you're right ZOOIkes [http://forums.massassi.net/html/wink.gif] - momentary lapse of concentration going on there lol

Anyways ... give ZOOIkes suggestion a whirl and let us know if you have any problems [http://forums.massassi.net/html/wink.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-09-06, 9:44 AM #6
so setmatcell() and getmatcell() right?

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-09-06, 5:23 PM #7
SetMaterialCel() && GetMaterialCel() [http://forums.massassi.net/html/smile.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!