Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - MrPickle

Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 13
91
Help / Spawn messed up.
« on: October 06, 2007, 02:16:16 PM »
It seems it's just ignoring the spawn sphere and spawning as close to 0 0 0 as possible.

Console, there's a bit with me trying to find out why lol.

92
Modification Help / Spawn Sphere
« on: October 05, 2007, 01:44:13 PM »
Is there a way to make it so only certain people can spawn at one spawn sphere and another group spawn else where and if so, how do you create a spawn sphere through code, %sphere = new SpawnSphere(){ blah }; ?

93
Modification Help / Arm not rising.
« on: October 05, 2007, 11:50:04 AM »
Code: [Select]
datablock ShapeBaseImageData(spawnWandImage : wandImage){
armReady        = true;
doColorShift    = true;
colorShiftColor = "1 0 0 1";
projectile      = AdminWandProjectile;
stateEmitter[1] = AdminWandEmitterA;
stateEmitter[3] = AdminWandEmitterB;
};

That wasn't working so I added in this:

Code: [Select]
function spawnWandImage::OnMount(%this, %obj){
%obj.playThread(0, armready);
}

function spawnWandImage::OnUnMount(%this, %obj){
%obj.playThread(0, root);
}

and that doesn't work.

94
I know how to check strings ($=) but is there a way to check if a string equals "x" or "y" without typing it out again like if(%x && (%y || %z)){}, I tried if(%x $= ("x" || "y"){} in console but it didn't seem to work.

95
Modification Help / Player function.
« on: October 01, 2007, 11:28:46 AM »
How do you create a function like %player.blah();, Is it GameConnection::Blah(){} like it is for clients or what?

96
Suggestions & Requests / Forklift
« on: September 27, 2007, 04:57:57 PM »
I think if done correctly it'd be good.

Basically your average forklift and when you press space the lil lifty bit goes up.

97
Modification Help / Terrorist Mod.
« on: September 26, 2007, 02:17:06 PM »
I've decided I shall update the terrorist mod but I need to know what to put in it.

My ideas;
  • Maybe convert to crime mod and add other things like robber.
  • Make it so you only need part of a name
  • Now gimme ideas

98
Modification Help / Item replacement.
« on: September 23, 2007, 06:32:18 AM »
Yeah so I dunno why it's not working.

Code: [Select]
function RandomImage::OnPickUp(%this, %obj, %Client){
%random = GetRandom(1,10);
switch(%random){
case 1:
%Item = GunItem;
case 2:
%Item = RocketLauncherItem;
case 3:
%Item = ShotGunItem;
case 4:
%Item = SwordItem;
case 5:
%Item = BowItem;
case 6:
%Item = SniperRifleItem;
case 8:
%Item = hegrenadeItem;
case 9:
%Item = chainSawItem;
case 10:
%Item = SpearItem;
}
%obj.delete();
if(%client.tool[0] $= "0"){
%client.tool[0] = nametoID(%item);
messageClient(%client, 'MsgItemPickup', '', 0, nametoID(%item));
} else if(%client.tool[1] $= "0"){
%client.tool[1] = nametoID(%item);
messageClient(%client, 'MsgItemPickup', '', 1, nametoID(%item));
} else if(%client.tool[2] $= "0"){
%client.tool[2] = nametoID(%item);
messageClient(%client, 'MsgItemPickup', '', 2, nametoID(%item));
} else if(%client.tool[3] $= "0"){
%client.tool[3] = nametoID(%item);
messageClient(%client, 'MsgItemPickup', '', 3, nametoID(%item));
} else if(%client.tool[4] $= "0"){
%client.tool[4] = nametoID(%item);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(%item));
}
}

99
Modification Help / ::OnAdd(%arg1, %arg2){}
« on: September 23, 2007, 04:56:47 AM »
What are the arguments for OnAdd and is there any way to find out any functions variables?

100
Modification Help / Need a model.
« on: September 18, 2007, 11:35:32 AM »
Could someone make me an axe, Like the hammer but with an axe head thanks.

101
Modification Help / %client.function();
« on: September 13, 2007, 11:29:53 AM »
How do you make a function like %client.function();

I made a function but it only works like function(%client);

102
Suggestions & Requests / Thumbs up and down.
« on: September 10, 2007, 06:17:13 PM »
In add-ons and all the other forums for releasing things, and maybe gallery there should be a sorta rep system but for topics so it's easy to see which add-on/build the community likes.

103
Modification Help / Client side.
« on: September 06, 2007, 05:45:45 PM »
What functions can you call client side like you obviously wouldn't be able to change your position client sided, or can you O.O

104
Modification Help / Arrays
« on: September 03, 2007, 07:08:59 AM »
I don't quite get what they do or how to use them, do they do this..

if %i = "1";
and %client.a = "2 3 4";
then you do %client.a[%i]
%client.a[%i] is like %client.a1?

105
Modification Help / AI Players.
« on: September 02, 2007, 07:40:19 AM »
How do you make them jump? i tried setImageTrigger(x,1); but any number i tried didn't make them jump and is there a function that's called when they're unStuck like onStuck?

Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 13