Raised This Month: $ Target: $400
 0% 

[TUT] Entities: what they are and how to use them


Post New Thread Reply   
 
Thread Tools Display Modes
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 04-03-2011 , 21:46   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #51

I read the tutorial and it is very nice ! thanks man!


But i have a question, if i want an entity to have more than 5 custom properties how do i do that ??
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-16-2011 , 20:35   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #52

Quick question since I just wanna test this, about your example on spawning a car.
I did exactly like the example and it spawns an entity. But I can't see it.
So I guess my question is how to make it spawn at a specific place like "get_user_aiming" for instance?
Erox902 is offline
liinuus
Senior Member
Join Date: Apr 2010
Old 07-18-2011 , 07:45   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #53

u get the origin of where they aim and then u set the origin of the entity there
liinuus is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-18-2011 , 17:17   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #54

Just realized... How do I get the origin of where they aim?
Erox902 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-18-2011 , 17:18   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #55

get_user_origin()
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-18-2011 , 17:49   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #56

Well wont that just give me the origin of the player?
I mean how do I get the origin of where they aim like
PHP Code:
new Float:Origin[3] = get_user_aiming(id)
entity_set_origin(Ent, ??? ) 
Tried this but first row gave me error about arguments.
Guess this is a little oftopic but anyways please help.
Will propably be helpful to some others too
Erox902 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-18-2011 , 17:50   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #57

I said get_user_origin(), not get_user_aiming().
You can set a specific mode to get the aim origin, if you would just read the page I sent you.

EDIT:

You will have to pass a non-Float array to get_user_origin(), then use IVecFVec to make it a float.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-22-2011 , 12:17   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #58

Thank you Exolent, really helpful
Erox902 is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-22-2011 , 12:48   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #59

Now I have another question cuz' i've tried all solid constants for the ent
But none of them acually block me from going staight through it
Anyone who has a hint on what's causing this?

Or should I post the code?
Erox902 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-22-2011 , 13:23   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #60

Quote:
Originally Posted by Erox902 View Post
Now I have another question cuz' i've tried all solid constants for the ent
But none of them acually block me from going staight through it
Anyone who has a hint on what's causing this?

Or should I post the code?
Set size after you set solid type.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode