![]() |
help me plz!!!
hi I need to know one or two things.
1. is there a script that has some effect such as if(npctouchsme)? 2. How do I change a players speed? 3. is there a way to make an npc attack only people with a certain item? if you have the answer plz let me know and what the script is thnx |
Re: help me plz!!!
Quote:
2. if (keydown(#)) {playerxory++or--;} 3. not sure |
I meant if an npc thouches another npc
|
only two types of touch commands playertouchsme, playertouchsother
|
so theres no npctouchsnpc?
|
no
there isn't npctouchme :(
But if you want an NPC to attack someone with a weapon,put like NPC Code:at the very start of the script for an NPC baddie,but you probably wouldn't like that :(if (hasweapon(whatever) |
Quote:
if (timeout){ bah i cant remember the rest, i have it somewhere so i will post it l8r |
Re: no
Quote:
if (playerx>this.difx1 && playerx<this.dfx2 && playery>this.diffy1 && playery<this.diffy2 && hasweapon(bah)){ Script goes here } but this would have to be in a timeout so the NPC can detect when the NPC or player is near him, i may just post my baddy on here it would be easier |
you would use testnpc and if the index is greater or equal 0, then its a npc, so you would make the npcs attack the other (triggeraction)
|
ok..... how do I change someones speed? Im not quite sure about that......
|
There isnt a built in flag called playerspeed so you have to make a custom one like
if (keydown(0)) {playerx=playerx-1;} |
k thnx
|
All times are GMT +2. The time now is 04:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.