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 → Walkplayer help....
Walkplayer help....
2001-03-17, 4:24 AM #1
Ok i want a cog to when you enter a sector it swithces the walkplayer to say like an AtSt. Then when your done and walk across another sector it changes you back.
Does anyone know how i could do this?

Please let me know if you have any ideas.
thnks



------------------
------------------
"Everyone dies..."
-Fett
"Everyone dies..."
-Fett
2001-03-17, 9:37 AM #2
I'm guessing your meaning the walkpalyer as the player ...

but

atst=atst.3do local
int curmodel local

( This is a cog attatched to a sector )

entered:

player=GetLocalPlayerThing(); ( I don't know if thats right ? )
curmodel=getthingmodel(player);
SetThingModel(player, atst);

return;

leave [http://forums.massassi.net/html/frown.gif] I don't know if thats a real message)

SetThingModel(player, curmodel);

return;

I don't know if alls thats right, especially the Int part.

But i'm sure Hekei will come along and tell me what went wrong and do some fancy stuff like ...

for(m=1 m>12 m<2)

Darn things I can't under stand them [http://forums.massassi.net/html/smile.gif]
2001-03-17, 3:01 PM #3
exited is the message you are looking for.
2001-03-17, 4:19 PM #4
can someone actually right it out? thanks for your help seifer but i need it a little more clear.
thanks

------------------
"Everyone dies..."
-Fett
"Everyone dies..."
-Fett
2001-03-17, 6:30 PM #5
If you do that you also have to set the pup to the ATST one.

------------------
Together we stand.
Divided we fall.
2001-03-17, 7:52 PM #6
Good call Algar
2001-03-18, 3:05 AM #7
Ok so you set the pup for the walkplayer to atst.pup right?
How does the game know what sector it wants you to switch in?

sorry for all the questions im not that great at cogs yet.



------------------
"Everyone dies..."
-Fett
"Everyone dies..."
-Fett
2001-03-18, 3:24 AM #8
Code:
symbols


int			player		local

model		oldmodel		local
model		atst=at.3do	   local //Has to be, unless you modify the pup in ParseArg

sector		switchmodel


message		startup
message		entered
message		exited


code:


startup:


player=GetLocalPlayerThing();


return;


entered:

oldmodel=GetThingModel(player);

SetThingModel(player, atst);

ParseArg(player "puppet=at.pup");//I think it's puppet, have to check

ParseArg(player, "soundclass=at.snd");

SetActorExtraSpeed(player, -1.0); //change to a speed you like

//you also need code to set the weapon to an ATST cannon, however, I am at work right now, and can't help with that...
return;

exited:

SetThingModel(player, oldmodel);

ParseArg(player "puppet=ky.pup");

ParseArg(player, "soundclass=ky.snd");

SetActorExtraSpeed(player, 0.0); 


return;


hopefully should work, I'm at work, so I can't check/test it.

------------------
Black. His gloves of finest wool.
Black. His codpiece made of metal.
His horse is blacker than a hole.
His pot is blacker than his kettle.

Visit Virus Productions!

[This message has been edited by LordVirus (edited March 18, 2001).]
"And lo, let us open up into the holy book of Proxy2..." -genk
His pot is blacker than his kettle!

↑ Up to the top!