ok, how do i make a code that spawns something in my inventory?
eg a pickup, that when i activate it, it spawns something in my inventory
Moderator: Forum Guards
(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
//=============================================================================
// Sodacan.
//=============================================================================
class Sodacan extends DeusExPickup;
state Activated
{
function Activate()
{
// can't turn it off
}
function BeginState()
{
local DeusExPlayer Player;
local SpawnObject Inventory;
Super.BeginState();
Player = DeusExPlayer(Owner);
SpawnObject = Spawn(Class'Your Class Name Here');
SpawnObject.Frob(Player,none);
SpawnObject.Destroy();
UseOnce();
}
Begin:
}
defaultproperties
{
maxCopies=10
bCanHaveMultipleCopies=True
bActivatable=True
ItemName="Soda"
ItemArticle="some"
PlayerViewOffset=(X=30.000000,Z=-12.000000)
PlayerViewMesh=LodMesh'DeusExItems.Sodacan'
PickupViewMesh=LodMesh'DeusExItems.Sodacan'
ThirdPersonMesh=LodMesh'DeusExItems.Sodacan'
LandSound=Sound'DeusExSounds.Generic.MetalHit1'
Icon=Texture'DeusExUI.Icons.BeltIconSodaCan'
largeIcon=Texture'DeusExUI.Icons.LargeIconSodaCan'
largeIconWidth=24
largeIconHeight=45
Description="The can is blank except for the phrase 'PRODUCT PLACEMENT HERE.' It is unclear whether this is a name or an invitation."
beltDescription="SODA"
Mesh=LodMesh'DeusExItems.Sodacan'
CollisionRadius=3.000000
CollisionHeight=4.500000
Mass=5.000000
Buoyancy=3.000000
}
kaner wrote:(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
klop cant you take a hint? please shut up, youre spamming in every one of my posts.
(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
state Activated
{
function Activate()
{
// can't turn it off
}
function BeginState()
{
local DeusExPlayer Player;
local Inventory SpawnObject;
Super.BeginState();
Player = DeusExPlayer(Owner);
SpawnObject = Spawn(Class'yoursupernoobhackedweapon');
SpawnObject.Frob(Player,none);
SpawnObject.bInObjectBelt = True;
if(SpawnObject.Owner != Player)
SpawnObject.Destroy();
UseOnce();
}
Begin:
}
(kcw)L)klop wrote:kaner wrote:(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
klop cant you take a hint? please shut up, youre spamming in every one of my posts.
look this isn't spamming(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
this would be(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor(kcw)L)klop wrote:it's a trigger u add to an item or to the floor
You get the picture
~€Wasted€~ wrote:Klop u have no buisness here leave!
actually nor do I, but i dont spam so ill stay. Was that for ur undercover pack main?
~€Wasted€~ wrote:Klop u have no buisness here leave!
actually nor do I, but i dont spam so ill stay. Was that for ur undercover pack main?
AgentSmyth wrote:~€Wasted€~ wrote:Klop u have no buisness here leave!
actually nor do I, but i dont spam so ill stay. Was that for ur undercover pack main?
your being kinda mean arnt you...
~€Wasted€~ wrote:Klop u have no buisness here leave!
actually nor do I, but i dont spam so ill stay. Was that for ur undercover pack main?