PDA

View Full Version : HELP WITH BIN #'S!!!



Laserjolt
04-28-2003, 04:34 PM
When I use the ChangeInv command, it doesn't give me anything. I think I messed up on what the BIN is... isn't it the thing's object number? And also, when you finish the level, I have this for the code:



symbols
message activated

thing door

sound goalsnd=Accomplish1.wav

end

## Code Section

code

//-------------------------------------------------------------------------------------------------

activated:
if(GetSenderRef() == door)
{
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
jkEndLevel();
return;
}
end


BUT... the level finishes before it has a chance to play the sound.

Also, I can't get a weapon replacement to work... I have a .gob with the Bryar 3DO replacements in it, but I can't add it to my level...

------------------
- Laserjolt
Projects:
Tusken Wars (in progress)


[Use code tags. Or else...]

[This message has been edited by GBK (edited April 28, 2003).]

Descent_pilot
04-28-2003, 05:03 PM
ChangeInv() is only noticable when you do something with GetInv() and things like that.

Right before JKEndLevel(); add sleep(1); the 1 is the flex delay.

Create a folder under the project directory named 3do and add the model there.

PS use code tags and for demo purposes, the typing up there is how you typed. Fast, unconnected, and hard to understand.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

Hellcat
04-28-2003, 07:45 PM
Also its a good idea to read the rules. It will stop you from getting into trouble to start with.

(No posts in all caps) My first topic was closed cause it was in all caps and mikec didnt like that http://forums.massassi.net/html/wink.gif )

------------------
Team Battle (http://www.out-post.net/jkteambattle/).

gbk
04-28-2003, 08:03 PM
symbols
message activated
thing door
sound goalsnd=Accomplish1.wav
end
code
activated:
if(GetSenderRef() != door) Stop;
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
Sleep(Getsoundlen(goalsnd) + 0.5);
jkEndLevel(1);
return;
end


That should do the trick...

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');

gbk
04-28-2003, 08:05 PM
Oh, and, no posting topics in ALL CAPS.

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');