Raised This Month: $ Target: $400
 0% 

Coordinates Help For Sprites/Models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 10-21-2005 , 14:58  
Reply With Quote #1

you definitely will have to store them somewhere, cuz otherwise the script will never know where to place them :/

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-21-2005 , 15:47  
Reply With Quote #2

You'd have to make an entity at a location, give it a unique classname, and then use the register_touch function to determine when a player runs over it. Then you can remove the entity and give the player some special ability.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
broertje
Senior Member
Join Date: Mar 2005
Old 10-21-2005 , 15:58  
Reply With Quote #3

I Know But How Can I Set The Entity Random Over The Map Else I Need To Get All Coordinates
broertje is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 10-21-2005 , 17:31  
Reply With Quote #4

I'm no pro origin programmer, but still, I think random_num can do the job...

Code:
new EntOrigin[3] EntOrigin[0]= random_num(minimumnumber,maximumnumber) EntOrigin[1]= random_num(minimumnumber,maximumnumber) EntOrigin[2]= random_num(minimumnumber,maximumnumber) entity_set_origin( MyEnt, EntOrigin )

That will give you random origins, I mean really RANDOm origins.

So don't wonder if it ends up below the map / inside wall, etc.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
broertje
Senior Member
Join Date: Mar 2005
Old 10-22-2005 , 03:46  
Reply With Quote #5

I Only Need One Entitie That Always Has To Been Setted,Thats The Ground,So That ItsNot Flying Or Something...
broertje is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 10-22-2005 , 06:12  
Reply With Quote #6

well but still you don't know whether you're placing your entity inside a wall or not...

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
broertje
Senior Member
Join Date: Mar 2005
Old 10-22-2005 , 06:42  
Reply With Quote #7

Runemod uses text files,So I'm Going To Add All Coordinates Of The Maps
broertje is offline
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 23:57.


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