UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Nanikos

I have a model of a gas mask which has targetname item_pickup1 and then I've got a trigger over the top which is targetname item_pickup_trig1...
So I go in game and the script run's fine and comes up with my hintstring, I interact and I get my line prints in top left as it should, and the trigger deletes fine. But I can't delete the model at all??! Help!

Code Snippet
cpp
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");
}
Test height=100
Test2 height=100
5 years ago
Loading ...