SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 01/05/2015, 10:55 AM   #11
bogushas
Big Clucker
 
bogushas's Avatar
 
Join Date: Sep 2012
Posts: 116
Reputation: 2
Default Re: Actors!(0.3.7 RC6)

How should I destroy actor by the HP's?
bogushas is offline   Reply With Quote
Old 01/05/2015, 11:03 AM   #12
Dragony92
Banned
 
Join Date: Feb 2011
Location: Belgrade, Serbia
Posts: 586
Reputation: 60
Default Re: Actors!(0.3.7 RC6)

pawn Code:
SetActorHealthEx(actorid, Float:health)
{
    if(health <= 0)
    {
        DestroyActor(actorid);
    }
    else SetActorHealth(actorid, health);
}
Dragony92 is offline   Reply With Quote
Old 01/05/2015, 11:15 AM   #13
HydraHumza
Gangsta
 
HydraHumza's Avatar
 
Join Date: Oct 2014
Posts: 641
Reputation: 130
Default Re: Actors!(0.3.7 RC6)

Useful tutorial <3
HydraHumza is offline   Reply With Quote
Old 01/05/2015, 01:43 PM   #14
Airman123
Big Clucker
 
Join Date: Aug 2014
Posts: 111
Reputation: 3
Default Re: Actors!(0.3.7 RC6)

v nice tut, btw u forgot to add [url "]" in ur sign
__________________
DM Server (Lag shot/ Lag Comp)
Airman123 is offline   Reply With Quote
Old 01/05/2015, 09:01 PM   #15
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,493
Reputation: 439
Default Re: Actors!(0.3.7 RC6)

Quote:
Originally Posted by AIped View Post
Okay...so about the streaming i want to understand correctly

Lets say a player is streamed in for the actor..and the actor has an animation like dead on the floor

will another player that streams in after that see the actor on the floor too if anim parameter set to true ?

(sorry i cant test it myself right now)
If the loop parameter is enabled, yes as of RC6-3.
Abagail is offline   Reply With Quote
Old 01/05/2015, 09:13 PM   #16
Vasco
Little Clucker
 
Vasco's Avatar
 
Join Date: Jan 2014
Location: Portugal
Posts: 19
Reputation: 2
Default Re: Actors!(0.3.7 RC6)

This is actually pretty useful, thanks man, REP+
Vasco is offline   Reply With Quote
Old 01/05/2015, 09:20 PM   #17
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,493
Reputation: 439
Default Re: Actors!(0.3.7 RC6)

Update: it appears Kalcor has sneaked in a update to the actor system in with some simple health functions, along with IsValidActor. I have updated the tutorial with them but after checking the R3 include they seem to be missing, so I guess they're only present in the official release.
Abagail is offline   Reply With Quote
Old 05/06/2015, 01:08 PM   #18
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 902
Reputation: 52
Default Re: Actors!(0.3.7 RC6)

I have to disagree with "I make actor's walk around?".
Because I managed to sync actors between players and make them walk around, they don't exists in areas where there are no players, but there is always actor near player, spawned actor have only one player to be synced with until that player leave certain radius of actor

Same thing as rockstar(tm) managed it in GTA IV and GTA V
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor is offline   Reply With Quote
Old 05/06/2015, 04:56 PM   #19
JonathanW
Huge Clucker
 
JonathanW's Avatar
 
Join Date: May 2014
Location: Montgomery Trailers, Red County.
Posts: 395
Reputation: 50
Default Re: Actors!(0.3.7 RC6)

Good work!
__________________

I left Samp. The world is beautiful, just so beautiful, but shit, it took me quite a bit to realize it.
JonathanW is offline   Reply With Quote
Old 14/07/2015, 11:11 AM   #20
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 373
Reputation: 35
Default Re: Actors!(0.3.7 RC6)

Is it possible to make them like peds, for example walking like in singleplayer and so players can kill them?
Saddin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Actors ATomas Scripting Help 17 30/04/2015 04:55 PM
Any voice actors? Lucky™ Everything and Nothing 4 22/01/2015 12:02 PM
NPC < Bots vs Actors > RSX General 6 25/09/2010 07:38 PM


All times are GMT. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.