Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Misfired
Forum: Scripting 11-28-2015, 23:51
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

Well for the moment I've replace the whole mess with ServerCommand calls and it's working... mostly. 9 times out of 10 the bot respawns. When it doesn't, it takes a server kick and respawn to get it...
Forum: Scripting 11-28-2015, 15:16
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

And I'm not ignoring your input asherkin. Just trying to get past this other hurdle first.
Forum: Scripting 11-28-2015, 15:14
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

I'm working with that now, but still struggling with passing the correct args.

Back to the original code for a second.... I'm find this frustrating.
The first func called from the console...
Forum: Scripting 11-28-2015, 11:57
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

After my last post I did exactly as you have, simplified the function down to just changeteam and dispatchspawn. That does get the bots on the correct team after death, but they don't spawn. Timing...
Forum: Scripting 11-28-2015, 01:02
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

I can see I'm way off here.... first I'm pushing strings to a function that's expecting ints.
Second I think I understand your comment now Wliu.
I'm only pushing one combined object, when I should...
Forum: Scripting 11-28-2015, 00:54
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

It takes two objects. 'client' I assume is the client index of the funtion caller? argc is the list of options.
In this case argc would contain 'Bot1' and the team number '1'

public Action...
Forum: Scripting 11-27-2015, 23:09
Replies: 14
Views: 3,392
Posted By Misfired
Re: Call_StartFunction - help passing arguments correctly

bMsg contain both the player name "Bot1" and the team number as seen in the print message.
[SM] @ @ Bot Team bMsg "Bot1 2" @ @

Adding a third field to the string like ... "id Bot1 2" ... gives...
Forum: Scripting 11-27-2015, 19:54
Replies: 14
Views: 3,392
Posted By Misfired
Call_StartFunction - help passing arguments correctly

Brand new to sourcemod and very rusty on C/C++, so pardon the code.
As a learning exercise I'm trying to identify dead bots and revive when they die.
This is for more or less a HL2DM mod.
...
Showing results 1 to 8 of 8

 
Forum Jump

All times are GMT -4. The time now is 13:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode