Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (EvanTJ), 8,302 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gunscript for enemy ? #406214
08/15/12 11:50
08/15/12 11:50
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I have a question.
I have an enemy and one gun.
I have assigned the t_shooter_enemy script to the NPC, and the mgun-script to the gun.
How do I assign the weapon to the NPC? Is that even possible?

Answers in german and english, please.

Thanks in advance..

Re: Gunscript for enemy ? [Re: ralf0507] #406218
08/15/12 12:03
08/15/12 12:03
Joined: Jul 2008
Posts: 2,128
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,128
Germany
I dont know the templates but i guess mgun-script is the player weapon script so u cant assign it to an enemy. Add a weapon to your enemy model in med, or add it by script to the bones fex
Code:
vec_for_bone

. Then modify your enemy-action(t_shooter_enemy) to fire at the player ( if it does not already fire at the player ). Have a look at
Code:
c_trace



greets

Last edited by rayp; 08/15/12 12:07.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Gunscript for enemy ? [Re: rayp] #406228
08/15/12 13:39
08/15/12 13:39
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I will try it, Thanks


Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1