Hi everyone, I'm modding GTA2 and this website is helping me A LOT.
I'm modding it to make a funny video for my friends, and would need a char to punch the air like he was dancing; would that be possible?
As for now, I've created the char as a DUMMY and set him to KILL_CHAR_ON_FOOT: obviously he reaches the target and punches him till his death, but I want him to stay still (let's say, to guard an area) and just keep punching the air for a considerable time.
Is there any invisible, invulnerable target I can set near him so that he'll try to punch him forever? Or should I set him to try and punch a nearby char, forcing him to stay still?
I did try to create him as a STAND_STILL_BLOKE, but he won't move; then I tried and gave him order to kill another CHAR, then left some DELAY and set him STAND_STILL_BLOKE: this is running inside a WHILE_EXEC loop, but CHAR will stay still and won't try to attack anyone.
Do you guys have anything in mind that could work? Thank you very much for your time.
Cheers
Can't make Char punch the air
Re: Can't make Char punch the air
there is INVISIBLE_TARGET and several other invisible objects but i dont know if punching them works. another solution would be to attack himself. the funny thing about that is that he really punches himself to death XD so you also have to make the char invincible if that should not happen.
yur sa'nok ngeyä
Re: Can't make Char punch the air
Hi elypter, thanks for the tips!
I'm trying this code:
But stupid ped will just stand still, where am I wrong? Also tried with TOWER but nothing.
Also, I've tried this code for him to attack himself:
But result's the same, he'll just stand still.
I'm sure I'm doing something wrong, as I've played with mission scripting for about a week and am totally noob about it.
Thanks again for your time.
I'm trying this code:
Code: Select all
CHAR_DATA ped = (118.7, 116.8, 2.0) 0 210 DUMMY
OBJ_DATA target = (118.7, 116.8, 2.0) 0 INVISIBLE_TARGET
SET_CHAR_OBJECTIVE (ped, DESTROY_OBJECT, target)
Also, I've tried this code for him to attack himself:
Code: Select all
CHAR_DATA ped = (118.7, 116.8, 2.0) 0 210 DUMMY
SET_CHAR_OBJECTIVE (ped, KILL_CHAR_ON_FOOT, ped)
I'm sure I'm doing something wrong, as I've played with mission scripting for about a week and am totally noob about it.
Thanks again for your time.
Re: Can't make Char punch the air
im not sure and i havent tested it but i assume you have to create a CRIMINAL, CRIMINAL_TYPE1 or 2 instead of a DUMMY
yur sa'nok ngeyä
Re: Can't make Char punch the air
It's working!!
I was setting his object before LEVELSTART, and what actually the point: now that the autopunching code is after LEVELSTART, everything works fine (even if the Char is a DUMMY). Of course I'll have to set him as invulnerable.
Here's the code I used:
Thank you very much for the tip, elypter.
I was setting his object before LEVELSTART, and what actually the point: now that the autopunching code is after LEVELSTART, everything works fine (even if the Char is a DUMMY). Of course I'll have to set him as invulnerable.
Here's the code I used:
Code: Select all
CHAR_DATA ped = (118.7, 116.8, 2.0) 0 210 DUMMY
[...] LEVELSTART
COUNTER loop = 1
[...] WHILE_EXEC (loop = 1)
SET_CHAR_OBJECTIVE (ped, KILL_CHAR_ON_FOOT, ped)
IF (CHECK_CHARACTER_HEALTH(player, 0))
SET_CHAR_INVINCIBLE (ped15, ON)
ENDIF
DO_NOWT
ENDWHILE
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete