IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 SA : Change CJ into another Actor

 Change CJ into another Actor
 
putraGTA  
Posted: Monday, Jul 30 2012, 10:18
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 29, 2012

XXXXX



Hello., I'am newbie here..,
I want to ask you how to change CJ into another Actor after he killed someone (#SPECIAL01)
In this topic, after CJ kill Tenpenny, I want to change CJ into Tenpenny when I press S.
Here's my cleo script :

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'NOP'

:NOP_11
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @NOP_11
if
$ONMISSION == 0
else_jump @NOP_11
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 262.1767 2896.174 10.1698 radius 100.5 100.5 50.5
else_jump @NOP_11
Model.Load(#AK47)
023C: load_special_actor 'TENPEN' as 1 // models 290-299

:NOP_115
wait 0
if
Model.Available(#AK47)
Model.Available(#SPECIAL01)
else_jump @NOP_115
1@ = Actor.Create(Mission1, #SPECIAL01, 262.1767, 2896.174, 10.1698)
Actor.Angle(1@) = 347.2881
Actor.Health(1@) = 10550
0446: set_actor 1@ immune_to_headshots 0
04D8: set_actor 1@ drowns_in_water 0
0946: set_actor 1@ actions_uninterupted_by_weapon_fire 0
01B2: give_actor 1@ weapon 30 ammo 9999 // Load the weapon model before using this
0245: set_actor 1@ walk_style_to "SWAT"
03FE: set_actor 1@ money 3000
05E2: AS_actor 1@ kill_actor $PLAYER_ACTOR
$TENPEN_ACTOR = Actor.Health(1@)
$TENPEN_ACTOR /= 40
03C4: set_status_text $TENPEN_ACTOR type 1 GXT 'NA' // global_variable
Model.Destroy(#SPECIAL01)

:NOP_279
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @NOP_368
if
not Actor.Dead(1@)
else_jump @NOP_385
if
00F2: actor $PLAYER_ACTOR near_actor 1@ radius 200.0 200.0 0
$TENPEN_ACTOR = Actor.Health(1@)
$TENPEN_ACTOR /= 25
else_jump @NOP_368
jump @NOP_279

:NOP_368
Actor.RemoveReferences(1@)
0151: remove_status_text $TENPEN_ACTOR
jump @NOP_11

:NOP_385
Actor.RemoveReferences(1@)
0151: remove_status_text $TENPEN_ACTOR
end_thread

Pleasse help me.., cryani.gif

PM
  Top
 

 
JACK JONES  
Posted: Tuesday, Jul 31 2012, 07:00
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



You posted in the wrong section. This is III modeling. Ask in the III coding section and we'll help you smile.gif.
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG