Raised This Month: $ Target: $400
 0% 

Creating Entity outside the Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-21-2009 , 14:07   Creating Entity outside the Map
Reply With Quote #1

How can I create a simple entity outside the map ?
KadiR is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 14:19   Re: Creating Entity outside the Map
Reply With Quote #2

PHP Code:
new ent create_entity"info_target" )

entity_set_originentFloat:{ 4096.04096.04096.0 } ) 
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-21-2009 , 15:56   Re: Creating Entity outside the Map
Reply With Quote #3

Thanks!

But why does it say to me:

Quote:
Warning: Loose indentation on line x
?
KadiR is offline
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 10-21-2009 , 16:25   Re: Creating Entity outside the Map
Reply With Quote #4

Press ctrl-I, if that doesnt work, show us your code.
__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1
OneMoreLevel is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 10-21-2009 , 16:28   Re: Creating Entity outside the Map
Reply With Quote #5

Quote:
Originally Posted by OneMoreLevel View Post
Press ctrl-I, if that doesnt work, show us your code.
I hate that answer. People will never know what they had wrong if they just use automatic indentation to solve this problem. Automatic indenter might also lead to more warnings or errors.
tpt is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-22-2009 , 08:22   Re: Creating Entity outside the Map
Reply With Quote #6

Quote:
Originally Posted by tpt View Post
I hate that answer. People will never know what they had wrong if they just use automatic indentation to solve this problem. Automatic indenter might also lead to more warnings or errors.
No, not really. It was a good indication of what to directly do.
If he sees the code organized he will understand (probably) what that means.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 10-22-2009 , 12:16   Re: Creating Entity outside the Map
Reply With Quote #7

Quote:
Originally Posted by ot_207 View Post
No, not really. It was a good indication of what to directly do.
If he sees the code organized he will understand (probably) what that means.
No, not really. The program will do the job for you and in some cases you might not see the difference. People who doesn't know what proper indentation is they shouldn't be coding.
tpt is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-22-2009 , 12:36   Re: Creating Entity outside the Map
Reply With Quote #8

Quote:
Originally Posted by OneMoreLevel View Post
Press ctrl-I, if that doesnt work, show us your code.
ah cool thanks, did worked
KadiR is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-28-2009 , 18:10   Re: Creating Entity outside the Map
Reply With Quote #9

I do not know really what:

PHP Code:
entity_set_originentFloat:{ 4096.04096.04096.0 } ) 
do, but I think the position..

Whats the difference to this?

PHP Code:
Float:{ 2237.0, -475.0, -322.0 }, Float:{ -463.0, -487.0, -322.0 } ); 
2 Floats? I wanted to create an entity from x position to y position, is this possible?

Something like this positions:

KadiR is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-28-2009 , 18:13   Re: Creating Entity outside the Map
Reply With Quote #10

Code:
entity_set_origin( ent, { 4096.0, 4096.0, 4096.0 } )
__________________
hleV is offline
Reply


Thread Tools
Display Modes

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 17:32.


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