Register Touch...
PHP Code:
|
Re: Register Touch...
If you are creating a weaponbox entity, then you should do create_entity("weaponbox"), not info_target. Anyway, your way of creating a weaponbox is poor. What do you really want to do ?
|
Re: Register Touch...
what's about solid?
|
Re: Register Touch...
Im no expert but, i don't think you can create an entity like this
Spoiler
I recommend you to search for zombie plague supply box plugin and take a look at that code |
Re: Register Touch...
Not using directly the weaponbox entity, i chose It's model for an example...
Testing it out, Adding some simple stuff into the touch function, doesn't have to be weapons... If you didn't understand the first post, The entity spawned succesfuly.. where ever i aim to there it spawns.. and It's passable, which is okay, but what I'm trying to do is add up score by one, print out the chat message, and remove the entity.. but whenever i touch it nothing happens, maybe it needs to be solid? |
Re: Register Touch...
i did understand the first post, you seem to not understand my post...
don't be ignorant and lazy, you have your answer in that code... anyway, this touch works fine for me when i create entities, if it doesn't for you, you have to create your entity properly... you have the example above Code:
#define ENT_NAME "just-a-box" |
Re: Register Touch...
You must make the entity solid and give it a size in order to be able to touch it. Also note that an entity is not solid for it's owner.
|
Re: Register Touch...
you could of done it easily by looking over the lasermine, jetpack or supply box code... that is the way i've learnt how to deal with entities...
all you had to do is copy paste the entity creation and touch functions, then edit them a little... anyway, here you have an example ( sorry, i didn't have time to finish it, but im sure you can do it yourself ) this way, may i ask if the public Event_NewRound is correct? i mean it works, but in some cases i seen looping to get the entities removed Code:
#define ClassUC "uclip" |
Re: Register Touch...
I tried fakemeta and still get the same results... It spawns, but when I touch it nothing happens...
PHP Code:
|
Re: Register Touch...
Quote:
Works fine. just read up on it |
| All times are GMT -4. The time now is 22:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.