okay i have these cogs finished just need them checked. I want to make sure they will work together. The first one lets u choose your bot by walking into a sector then making u respawn, the next one is a cog that i want to start when the first one respawns you. I will probably just end up combining the two cogs though, easier that way.
the one that starts once respawned
------------------
Join the army,
Visit new places,
Meet new people,
Then drop bombs on them
Code:
#JK COG YIPEE!! #[Han5687] #Top secret cog for level #[may 13 9:41 pm 2001] symbols thing player local thing bot1 thing bot2 thing bot3 thing bot4 thing bot5 model bot1 model bot2 model bot3 model bot4 model bot5 sector bot1 linkid=1 sector bot2 linkid=2 sector bot3 linkid=3 sector bot4 linkid=4 sector bot5 linkid=5 message entered end # ======================================= code entered: player=jkGetLocalPlayerThing; if (GetSourceRef==player) { if (GetSenderID() == 1) { SetThingModel(player,bot1); TeleportThing(player,bot1); } else if (GetSenderID() == 2) { SetThingModel(player,bot2); TeleportRhing(player,bot2); } else if (GetSenderID() == 3) { SetThingModel(player,bot3); TeleportRhing(player,bot3); } else if (GetSenderID() == 4) { SetThingModel(player,bot4); TeleportRhing(player,bot4); } else if (GetSenderID() == 5) { SetThingModel(player,bot5); TeleportRhing(player,bot5); } } return; end
the one that starts once respawned
Code:
#JK COG YIPEE!! #[Han5687] #Top secret cog for level #[may 16 4:42 pm 2001] symbols thing player local model bot1 //backlash model bot2 //scrub model bot3 //crusher model bot4 //fish tank model bot5 //hammerhead message respawn end # ======================================= code respawn: player=GetLocalPlayerThing(); if(GetThingModel(player) == bot1) { ParseArg("player, cog=bckcog.cog"); ParseArg("player, pup=bckpup.cog"); SetThingHealth(player, 250); SetThingExtraSpeed(player, 1.5); SetInv(player,1,1); } if(GetThingModel(player) == bot2) { ParseArg("player, cog=scbcog.cog"); ParseArg("player, pup=scbpup.cog"); SetThingHealth(player, 260); SetThingExtraSpeed(player, 1.2); SetInv(player,1,2); } if(GetThingModel(player) == bot3) { ParseArg("player, cog=crhcog.cog"); ParseArg("player, pup=crhpup.cog"); SetThingHealth(player, 280); SetThingExtraSpeed(player, 1.2); SetInv(player,1,3); } if(GetThingModel(player) == bot4) { ParseArg("player, cog=fshcog.cog"); ParseArg("player, pup=fshpup.cog"); SetThingExtraSpeed(player, 1.8); SetThingHealth(player, 285); SetInv(player,1,4); } if(GetThingModel(player) == bot5) { ParseArg("player, cog=jerec.cog"); ParseArg("player, pup=fshpup.cog"); SetThingHealth(player, 300); SetThingExtraSpeed(player, .9); SetInv(player,1,5); } return; end
------------------
Join the army,
Visit new places,
Meet new people,
Then drop bombs on them
roses are red, violets are blue, I am schizophrenic, and I am too!