Author Topic: Magic Wand Model from v0002 (V2)  (Read 6387 times)

Im sorry cubelands, but I cannot understand a sentence you have made in this thread.
Can you understand this?
Request by:ShadowZero in this Thread

This is the Editor Wand ported from Blockland V0002.

-snip-
-snip-

You can make a script for it if you like. I might make it do stuff in the future. I copied an item Bunny's script, credit to TheLegomaster

Installation
Put Tool_Editor_Wand.zip into the Add-Ons folder in your Blockland folder.


I wanted to post this in Add-Ons first because RTB takes a long time to approve add ons. Once approved, I will lock this thread and remove everything.

NOTE: This add on is just the model, it has no functionality.

Change note (V2):
The image bmp has been changed to png on the model because RTB does not allow the use of BMP images.
I am confused! What are you trying to say to me?
Yes, you can only hold it. That's all.
Only a light yellow. I will change the color on the model.
Updated: renamed the topic's title.

add it on the script
add write script
Item bunny
I no understandableith.

Why couldn't you give it to someone who actually would add the event trigger, like the suggestion asked?

Why couldn't you give it to someone who actually would add the event trigger, like the suggestion asked?
You can make a script for it if you like.



Ok, I might
I did posted at RTB of magic wand. I am wait for thier approve.

Ok, I might
Code: [Select]
registerInputEvent(fxDTSBrick, onEditorWandHit,"Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "Minigame Minigame");

function EditorWandProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);

if(%col.getClassName() $= "fxDTSBrick")
{
$InputTarget_["Self"] = %col;
$InputTarget_["Player"] = %obj.client.player;
$InputTarget_["Client"] = %obj.client;

if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.client);
}

else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.client))
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
}

else
{
$InputTarget_["MiniGame"] = 0;
}
}

%col.processInputEvent(onEditorWandHit, %obj.client);
}
}
« Last Edit: April 25, 2012, 05:18:56 PM by jes00 »

Code: [Select]
registerInputEvent(fxDTSBrick, onEditorWandHit,"Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "Minigame Minigame");

function EditorWandProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);

if(%col.getClassName() $= "fxDTSBrick")
{
$InputTarget_["Self"] = %col;
$InputTarget_["Player"] = %obj.client.player;
$InputTarget_["Client"] = %obj.client;

if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.client);
}

else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.client))
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
}

else
{
$InputTarget_["MiniGame"] = 0;
}
}

%col.processInputEvent(onEditorWandHit, %obj.client);
}
}
Okay I will add this script and update it and I will test it.

EDIT: jes00 get this credit.
« Last Edit: April 25, 2012, 05:36:03 PM by Cubelands »

Okay I will add this script and update it and I will test it.

EDIT: jes00 get this credit.
Don't forget to actually make it fire a projectile.

Don't forget to actually make it fire a projectile.
gimme me add other script, please and thank.
never mind, I found it and wrote it.
« Last Edit: April 25, 2012, 05:52:45 PM by Cubelands »

Sorry I couldn't be more helpful with the script. I had a bit of trouble.

so does this script actually do anything apart from a model you can pick up and hold?

it'd be good to use the original wand's stuff.
NOTE: This is just the model, no functionality.
Can you not loving read?