
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!item_pickup()
{
item_model = GetEnt("item_pickup1", "targetname");
item_pickup_trig = GetEnt("item_pickup_trig1", "targetname");
item_pickup_trig sethintstring("Press and hold &&1 to pick up mask");
item_pickup_trig waittill("trigger", player);
item_model delete();
item_pickup_trig delete();
iPrintLn("Picked up Gas Mask");
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
item_pickup()
{
item_model = GetEnt("item_pickup1", "targetname");
item_pickup_trig = GetEnt("item_pickup_trig1", "targetname");
item_pickup_trig sethintstring("Press and hold &&1 to pick up mask");
item_pickup_trig waittill("trigger", player);
if(!isdefined(item_model) || item_model.size <= 0)
{
IPrintLnBold("Item model is missing!");
return;
}
item_model delete();
item_pickup_trig delete();
iPrintLn("Picked up Gas Mask");
}