AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to make a model seeker (https://forums.alliedmods.net/showthread.php?t=54334)

turbex 04-23-2007 02:36

how to make a model seeker
 
well....
this is my question...
how to make a model seeker... for example...
create a model... ("misil") and this model seek a player... and... when touch the player... make a effect "explosion" and the touched player lost few health...

please... awnser me...
thanks!!!!! :)

pRED* 04-23-2007 03:34

Re: how to make a model seeker
 
It's not a quick and easy topic to give you an answer on..

Have a look at the amx_apache plugin for some code examples creating and firing missile entities and making them explode when the hit them.

The client_PreThink and pfn_Touch functions are where you should be looking..

I'm not sure about making it aim at a player..

I guess in the PreThink function you would want to find the closest enemy player and trace a line to them? and find the angle required to move towards them and set that for your missile..

turbex 04-23-2007 09:15

Re: how to make a model seeker
 
ok.... thanks man

turbex 04-24-2007 02:01

Re: how to make a model seeker
 
sorry for the duoble post...

but... other suggestion for my question???

thanks


All times are GMT -4. The time now is 06:46.

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