Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Little Help?
Little Help?
2001-10-23, 10:44 AM #1
See I have this box and I wanna make it so when someone clicks on this box.. it gives them a gun.. how can this be done?
2001-10-23, 4:53 PM #2
Click as in activates it ?
2001-10-24, 10:36 AM #3
wow i thought i would never come back here
i am rusty so this is probably wrong bu might as well try.
Code:
symbols
thing player local
thing switch
message startup
message activated
end
code
startup:
player = getlocalplayerthing();
return;
activated:
SetInv(player,0,0); //the first # is bin #
                    //2nd # quantity
return;
end

okay i haven't cogged forever so the verbs might be wrong, u might want to check them on jkspecs but other than that is should work

/edit forgot to add symbols and end /edit

[This message has been edited by Han5678 (edited October 24, 2001).]
roses are red, violets are blue, I am schizophrenic, and I am too!

↑ Up to the top!