Raised This Month: $ Target: $400
 0% 

Adding custom weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-05-2014 , 22:25   Re: Adding custom weapons
Reply With Quote #1

entity_set_model(EntityIndex, "ModelPath");
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-06-2014 , 02:40   Re: Adding custom weapons
Reply With Quote #2

Quote:
Originally Posted by YamiKaitou View Post
entity_set_model(EntityIndex, "ModelPath");
Yes, I knew that myself. But:
1. Searched the engine includes. No entity_set_model. (latest AMXX version)
2. I'm not so sure about the EntityIndex. Is that, in a case of a player, a simple index? Like id or 0?
__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2014 , 04:06   Re: Adding custom weapons
Reply With Quote #3

Quote:
Originally Posted by EpicKiller View Post
1. Searched the engine includes. No entity_set_model. (latest AMXX version)
I see it in engine.inc

Quote:
2. I'm not so sure about the EntityIndex. Is that, in a case of a player, a simple index? Like id or 0?
EntityIndex is the entity that you are setting the model on. I've never used it, so I don't know if it requires the index of the weapon or the player. Maybe someone else can answer you there
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-06-2014 , 05:22   Re: Adding custom weapons
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
I see it in engine.inc


EntityIndex is the entity that you are setting the model on. I've never used it, so I don't know if it requires the index of the weapon or the player. Maybe someone else can answer you there
Yeah, I managed to figure out myself that the index is the entity that the function is supposed to set the model on. But I have absolutely no idea what that could be in this case.
Thank you very much for your help!
Best regards!
__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
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:17.


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