mint3d Posted November 14, 2013 Share Posted November 14, 2013 OK so I need a little help, basically I want to create a pick up that outputs text into chat box how can I do this? Link to comment
AlphaMark Posted November 14, 2013 Share Posted November 14, 2013 Maybe you can make an invisible marker at the same spot? Link to comment
ViRuZGamiing Posted November 14, 2013 Share Posted November 14, 2013 Example: function onPickupHitFunction ( thePlayer ) if getPickupType ( source ) ~= 2 then return end -- if the pickup is no weapon, stop local ammo = getPickupAmmo ( source ) -- get the amount of ammo local weapon = getPickupWeapon ( source ) -- get the weapon of the pickup outputChatBox ( "You just picked up a " .. getWeaponNameFromID(weapon) .. " with " .. ammo .. " ammo", thePlayer ) -- output a message to the player end addEventHandler ( "onPickupHit", getRootElement(), onPickupHitFunction ) -- add an event handler for onPickupHit Link to comment
mint3d Posted November 14, 2013 Author Share Posted November 14, 2013 I mean like say for example its a info icon and you walk into it it will say This is a building from 1982 or somthing Link to comment
ViRuZGamiing Posted November 14, 2013 Share Posted November 14, 2013 I'm still new so I don't know if i'm doing right but i try to help; function pickupUse (source) local pickup = createPickup(x, y, z, 3, 1239) -- Create a pickup usePickup(pickup,getRandomPlayer()) -- Make a random player use the pickup outputChatBox ( "INFO: This is a building from 1982", thePlayer ) -- output a message to the player end addEventHandler("onResourceStart", getRootElement(), pickupUse) I hope it works Link to comment
tosfera Posted November 14, 2013 Share Posted November 14, 2013 You know mint3d, all you did till now was coming here and requesting stuff. Don't want to be rude but maybe you should start learning LUA and finally create a script yourself. After you made it and you get errors, first google. If that doesn't work, then post. Link to comment
mint3d Posted November 14, 2013 Author Share Posted November 14, 2013 I know how to script so ye stfu maybe think before saying shit check my recent post bitch Link to comment
tosfera Posted November 14, 2013 Share Posted November 14, 2013 Your most recent post; OK so I need a little help, basically I want to create a pick up that outputs text into chat box how can I do this? Looking for codes... 404 - not found. Looking for swearing words... *Ping!* 3 results found. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now