| Blockland Forums > Modification Help |
| Sword not shooting projectiles at all |
| << < (2/4) > >> |
| Placid:
--- Quote from: YoshiDude on June 12, 2011, 02:17:50 PM ---[*]Is there a way to check if a player has an image mounted? If so, is there a way to tell what it is? [/list] --- End quote --- (coming from a client:) --- Code: ---if(!%client.player.getMountedImage(0) $="0") --- End code --- and to tell what it is would be --- Code: ---%wep = %client.player.getMountedImage(0).getName(); --- End code --- --- Quote from: YoshiDude on June 12, 2011, 02:17:50 PM ---[*]Is there a way to toggle being able to jump/swim without changing the datablock? [/list] --- End quote --- I do not believe so. --- Quote from: YoshiDude on June 12, 2011, 02:17:50 PM ---[*]What's the opposite of onEnterLiquid?[/list] --- End quote --- function whatever::onLeaveLiquid(%this,%obj,%type) found that one through a search lol the rest I'm very very unsure about or in other words can't help you on. |
| YoshiDude:
--- Quote from: Placid on June 13, 2011, 08:59:13 AM ---(coming from a client:) --- Code: ---if(!%client.player.getMountedImage(0) $="0") --- End code --- and to tell what it is would be --- Code: ---%wep = %client.player.getMountedImage(0).getName(); --- End code --- I do not believe so. function whatever::onLeaveLiquid(%this,%obj,%type) found that one through a search lol the rest I'm very very unsure about or in other words can't help you on. --- End quote --- Thank you very much. About the toggling jumping/swimming, my idea would be since these are going to be toggled with items, I could just use velocity for the jumping, and then the swimming bit I could use to instant respawn whoever enters water without that item. |
| Placid:
--- Quote from: YoshiDude on June 13, 2011, 10:42:11 AM ---Thank you very much. About the toggling jumping/swimming, my idea would be since these are going to be toggled with items, I could just use velocity for the jumping, and then the swimming bit I could use to instant respawn whoever enters water without that item. --- End quote --- do you have to use the item to go in the water or just have it? if it's using it, just use onFire to set a datablock if a variable is not true, i.e. --- Code: ---function lolImage::onFire(%this,%obj,%slot) { %client = %obj.player if(%client.enterWater) { %client.enterWater = 0; %client.setDatablock("PlayerStandardArmor"); } else { %client.enterWater = 1; %client.setDatablock("NoJumpArmor"); } Parent::onFire(%this,%obj,%slot); } --- End code --- or something like that. but that's just my idea. |
| YoshiDude:
--- Quote from: Placid on June 13, 2011, 10:48:11 AM ---do you have to use the item to go in the water or just have it? --- End quote --- It just has to be equipped, that's all. |
| YoshiDude:
EDIT: Whoops, wrong topic. |
| Navigation |
| Message Index |
| Next page |
| Previous page |