Author Topic: Furling's script.  (Read 1138 times)

I work on my own mod private on my script. I want know how make the wrench hit the brick and vehicle spawn as the gui pop up?

I can't understand you. Sorry.

I think he wants to know how to make a custom brick act as a vehicle spawn when hit with a Wrench.

I think he wants to know how to make a custom brick act as a vehicle spawn when hit with a Wrench.
This.
It for normal brick and vehicle spawn.


Code: [Select]
specialbricktype = "VehicleSpawn";

Code: [Select]
specialbricktype = "VehicleSpawn";
No. It has be function, when hit the brick then GUI pop up.

Can you try asking your question again?

Are you trying to:
make a custom brick act as a vehicle spawn

or what?

I can't understand you. Sorry.
i'm sorry but
I can understand him just fine. If you can't, then don't post.

No. It has be function, when hit the brick then GUI pop up.
No, his code will help you, there is no function required.

I can understand him just fine. If you can't, then don't post.
No, his code will help you, there is no function required.

Code: [Select]
specialbricktype = "VehicleSpawn"; I will add it, but what about the bricK?
Like this:
Code: [Select]
specialbricktype = "Brick"; as in server.cs script correct?
How I can have both or separate line each of them?
This my idea something look like:

This my idea an example

I work on Super Wrench for GUI pop up with multiple Vehicles, Tools, Items, Weapons of Inventory (Wrench Inventory Viewer GUI)

My code:
server.cs
Code: [Select]
datablock itemData(superWrenchItem : wrenchItem)
{
category = "Weapon";
uiName = "Super Wrench";
image = superWrenchImage;
colorShiftColor = "1 0 1 1";
};

datablock shapeBaseImageData(superWrenchImage : wrenchImage)
{
// SpaceCasts
raycastWeaponRange = 4;
raycastWeaponTargets = $TypeMasks::All;
raycastDirectDamage = 0;
raycastExplosionProjectile = wrenchProjectile;

item = superWrenchItem;
projectile = wrenchProjectile;
colorShiftColor = "1 0 1 1";
showBricks = 0;

// State change needed so that the wrench will autofire without reclicking.
stateTransitionOnTriggerUp[4] = "";
stateTransitionOnTriggerDown[4] = "StopFire";
};

color code:
Code: [Select]
1 0 1 1=PurpleSo where I can put specialbricktype = "VehicleSpawn"; at?

Thank you for patience with me for doing this.

So where I can put specialbricktype = "VehicleSpawn"; at?

Thank you for patience with me for doing this.
It belongs in the code that creates the brick datablock

Ohh. I think he's looking for the clientside function that gets called when the vehicle GUI pops up. That's wrenchVehicleSpawnDlg::onWake(%this)

Ohh. I think he's looking for the clientside function that gets called when the vehicle GUI pops up. That's wrenchVehicleSpawnDlg::onWake(%this)
Are you sure? which I put it in part line? I posted above code line and the picture.

That reminds me, I should really release my RC vehicles mod.

That reminds me, I should really release my RC vehicles mod.
UH?